[pim/messagelib] messagelist/src/core: Remove dead code

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6b074b23373b6fa1ab5911f91a8628e143c00406 by Laurent Montel.
Committed on 30/07/2026 at 05:02.
Pushed by mlaurent into branch 'master'.

Remove dead code

M  +0    -24   messagelist/src/core/view.cpp
M  +0    -1    messagelist/src/core/view.h

https://invent.kde.org/pim/messagelib/-/commit/6b074b23373b6fa1ab5911f91a8628e143c00406

diff --git a/messagelist/src/core/view.cpp b/messagelist/src/core/view.cpp
index 57ccdc6b1..e8a648533 100644
--- a/messagelist/src/core/view.cpp
+++ b/messagelist/src/core/view.cpp
@@ -680,30 +680,6 @@ void View::resizeEvent(QResizeEvent *e)
     triggerDelayedSaveThemeColumnState();
 }
 
-void View::paintEvent(QPaintEvent *event)
-{
-#if 0
-    if (/*mFirstResult &&*/ (!model() || model()->rowCount() == 0)) {
-        QPainter p(viewport());
-
-        QFont font = p.font();
-        font.setItalic(true);
-        p.setFont(font);
-
-        if (!d->mTextColor.isValid()) {
-            d->generalPaletteChanged();
-        }
-        p.setPen(d->mTextColor);
-
-        p.drawText(QRect(0, 0, width(), height()), Qt::AlignCenter, i18n("No result found"));
-    } else {
-        QTreeView::paintEvent(event);
-    }
-#else
-    QTreeView::paintEvent(event);
-#endif
-}
-
 void View::modelAboutToEmitLayoutChanged()
 {
     // QHeaderView goes totally NUTS with a layoutChanged() call
diff --git a/messagelist/src/core/view.h b/messagelist/src/core/view.h
index 7cc77e3b4..696256362 100644
--- a/messagelist/src/core/view.h
+++ b/messagelist/src/core/view.h
@@ -408,7 +408,6 @@ protected:
      */
     void resizeEvent(QResizeEvent *e) override;
 
-    void paintEvent(QPaintEvent *event) override;
     /**
      * Reimplemented in order to kill the QTreeView column auto-resizing
      */
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.