From c90423eb05709e199e4d165c0764a0052588b7ee Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 22 Feb 2023 16:47:34 +0100 Subject: [PATCH] Markdown: Remove unneeded context Change-Id: I5b574f33d335a1a52792aad4520e5abc16ec2645 Reviewed-by: hjk --- src/plugins/texteditor/markdowneditor.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/texteditor/markdowneditor.cpp b/src/plugins/texteditor/markdowneditor.cpp index 2778ecd3de8..8ec3c445be8 100644 --- a/src/plugins/texteditor/markdowneditor.cpp +++ b/src/plugins/texteditor/markdowneditor.cpp @@ -21,7 +21,6 @@ namespace TextEditor::Internal { const char MARKDOWNVIEWER_ID[] = "Editors.MarkdownViewer"; const char MARKDOWNVIEWER_MIME_TYPE[] = "text/markdown"; -const char MARKDOWNVIEWER_EDITOR_CONTEXT[] = "Editors.MarkdownViewer.Id"; class MarkdownEditor : public Core::IEditor { @@ -42,11 +41,6 @@ public: editor->setupGenericHighlighter(); editor->setMarksVisible(false); - auto context = new Core::IContext(this); - context->setWidget(editor); - context->setContext(Core::Context(MARKDOWNVIEWER_EDITOR_CONTEXT)); - Core::ICore::addContextObject(context); - setContext(Core::Context(MARKDOWNVIEWER_ID)); setWidget(&m_widget);