From 8f21b07de6936dcbb74a27bd8e6c1b9f5dbb0e44 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 28 Aug 2023 01:27:27 +0300 Subject: [PATCH] kdeui: remove unused KActionCategoryPrivate member Signed-off-by: Ivailo Monev --- kdeui/actions/kactioncategory.cpp | 14 +------------- kdeui/actions/kactioncategory.h | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/kdeui/actions/kactioncategory.cpp b/kdeui/actions/kactioncategory.cpp index c95b228d..10e16f68 100644 --- a/kdeui/actions/kactioncategory.cpp +++ b/kdeui/actions/kactioncategory.cpp @@ -24,14 +24,8 @@ struct KActionCategoryPrivate { - KActionCategoryPrivate(KActionCategory *host); - - //! Our host - KActionCategory *q; - //! The text for this category QString text; - //! List of actions QList actions; @@ -40,7 +34,7 @@ struct KActionCategoryPrivate KActionCategory::KActionCategory(const QString &text, KActionCollection *parent) : QObject(parent), - d(new KActionCategoryPrivate(this)) + d(new KActionCategoryPrivate()) { d->text = text; } @@ -141,10 +135,4 @@ void KActionCategory::unlistAction(QAction *action) d->actions.takeAt(index); } - -KActionCategoryPrivate::KActionCategoryPrivate( KActionCategory *host ) - : q(host) -{ -} - #include "moc_kactioncategory.cpp" diff --git a/kdeui/actions/kactioncategory.h b/kdeui/actions/kactioncategory.h index 050925d6..bafa0b14 100644 --- a/kdeui/actions/kactioncategory.h +++ b/kdeui/actions/kactioncategory.h @@ -175,7 +175,7 @@ private: */ void addAction(QAction *action); - //! KActionCollection needs access to some of our helper methods + //! KActionCollection needs access to some of the helper methods friend class KActionCollectionPrivate; //! Implementation details