aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilian Wolff <[email protected]>2015-07-28 17:49:01 +0200
committerMilian Wolff <[email protected]>2015-07-28 19:33:08 +0200
commit494357a0781a435070616ba9e7d132792a384e0e (patch)
tree4c53e7e7189049a4deee14a8bac171e2b1a36dd7
parent37c57bda718032d256ede49f155ee23f3da9274b (diff)
Remove obsolete code.
-rw-r--r--addons/snippets/katesnippets.cpp6
-rw-r--r--addons/snippets/katesnippets.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/addons/snippets/katesnippets.cpp b/addons/snippets/katesnippets.cpp
index 44815eb..fb0c528 100644
--- a/addons/snippets/katesnippets.cpp
+++ b/addons/snippets/katesnippets.cpp
@@ -76,9 +76,6 @@ KateSnippetsPluginView::KateSnippetsPluginView(KateSnippetsPlugin *plugin, KText
topToolbar->addActions(m_snippets->actions());
static_cast<QBoxLayout *>(m_toolView->layout())->insertWidget(0, topToolbar);
- // register this view
- m_plugin->mViews.append(this);
-
// create actions
QAction *a = actionCollection()->addAction(QStringLiteral("tools_create_snippet"));
a->setIcon(QIcon::fromTheme(QStringLiteral("document-new")));
@@ -116,9 +113,6 @@ KateSnippetsPluginView::~KateSnippetsPluginView()
}
m_mainWindow->guiFactory()->removeClient(this);
-
- // unregister this view
- m_plugin->mViews.removeAll(this);
}
void KateSnippetsPluginView::slotViewCreated(KTextEditor::View *view)
diff --git a/addons/snippets/katesnippets.h b/addons/snippets/katesnippets.h
index 319f38d..7b9a75c 100644
--- a/addons/snippets/katesnippets.h
+++ b/addons/snippets/katesnippets.h
@@ -45,7 +45,6 @@ public:
private:
KateSnippetGlobal *m_snippetGlobal;
- QList<KateSnippetsPluginView *> mViews;
};
class KateSnippetsPluginView : public QObject, public KXMLGUIClient