[network/ruqola] src/widgets/switchchannelhistory: Don't store unused variable

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4a1e806ce5d9d257d75159e7329bda57839c307a by Laurent Montel.
Committed on 13/08/2026 at 16:36.
Pushed by mlaurent into branch 'master'.

Don't store unused variable

M  +0    -1    src/widgets/switchchannelhistory/switchchanneldelegate.cpp
M  +0    -1    src/widgets/switchchannelhistory/switchchanneldelegate.h

https://invent.kde.org/network/ruqola/-/commit/4a1e806ce5d9d257d75159e7329bda57839c307a

diff --git a/src/widgets/switchchannelhistory/switchchanneldelegate.cpp b/src/widgets/switchchannelhistory/switchchanneldelegate.cpp
index 6a083f7bbd..70bf15d192 100644
--- a/src/widgets/switchchannelhistory/switchchanneldelegate.cpp
+++ b/src/widgets/switchchannelhistory/switchchanneldelegate.cpp
@@ -32,7 +32,6 @@ void SwitchChannelDelegate::setCurrentRocketChatAccount(RocketChatAccount *curre
 {
     mAvatarCacheManager->setCurrentRocketChatAccount(currentRocketChatAccount);
     mAvatarCacheManager->clearCache();
-    mRocketChatAccount = currentRocketChatAccount;
 }
 
 void SwitchChannelDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
diff --git a/src/widgets/switchchannelhistory/switchchanneldelegate.h b/src/widgets/switchchannelhistory/switchchanneldelegate.h
index abd08cda45..bca09d99bb 100644
--- a/src/widgets/switchchannelhistory/switchchanneldelegate.h
+++ b/src/widgets/switchchannelhistory/switchchanneldelegate.h
@@ -22,6 +22,5 @@ public:
     void setCurrentRocketChatAccount(RocketChatAccount *currentRocketChatAccount);
 
 private:
-    RocketChatAccount *mRocketChatAccount = nullptr;
     AvatarCacheManager *const mAvatarCacheManager;
 };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.