From 9d63fdac6410c90c3fd1e0ef4ae60bf448412c55 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 29 Jan 2024 11:05:50 +0100 Subject: [PATCH] CPaster: Remove unnecessary QAction members They were set but never needed again. Change-Id: I4805405c28c9635a8607487bcc6975cf179446a1 Reviewed-by: Eike Ziller --- src/plugins/cpaster/cpasterplugin.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index 7501a462776..9920ed4535d 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -85,10 +85,6 @@ public: void fetchUrl(); - QAction *m_postEditorAction = nullptr; - QAction *m_fetchAction = nullptr; - QAction *m_fetchUrlAction = nullptr; - PasteBinDotComProtocol pasteBinProto; FileShareProtocol fileShareProto; DPasteDotComProtocol dpasteProto; @@ -161,21 +157,18 @@ CodePasterPluginPrivate::CodePasterPluginPrivate() ActionBuilder(this, "CodePaster.Post") .setText(Tr::tr("Paste Snippet...")) - .bindContextAction(&m_postEditorAction) .setDefaultKeySequence(Tr::tr("Meta+C,Meta+P"), Tr::tr("Alt+C,Alt+P")) .addToContainer(menu) .addOnTriggered(this, &CodePasterPluginPrivate::pasteSnippet); ActionBuilder(this, "CodePaster.Fetch") .setText(Tr::tr("Fetch Snippet...")) - .bindContextAction(&m_fetchAction) .setDefaultKeySequence(Tr::tr("Meta+C,Meta+F"), Tr::tr("Alt+C,Alt+F")) .addToContainer(menu) .addOnTriggered(this, &CodePasterPluginPrivate::fetch); ActionBuilder(this, "CodePaster.FetchUrl") .setText(Tr::tr("Fetch from URL...")) - .bindContextAction(&m_fetchUrlAction) .addToContainer(menu) .addOnTriggered(this, &CodePasterPluginPrivate::fetchUrl); }