diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-09-21 10:36:30 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-09-21 11:54:20 +0000 |
commit | 4d6487e753b8838f460769ff9758ac6c82a88a35 (patch) | |
tree | c9cf8cf04489dcceffbb18ce3f3bd4b0ba2bf065 | |
parent | e82fcad635c490732a23c2c0691991e876864186 (diff) |
Remove unused function
Change-Id: Iac2afb005a8c76080862da4c5d75778b48511e60
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | docs/extensions.md | 5 | ||||
-rw-r--r-- | plugins/pythonextensions/pythonextensionsplugin.cpp | 5 | ||||
-rw-r--r-- | plugins/pythonextensions/pythonextensionsplugin.h | 1 |
3 files changed, 0 insertions, 11 deletions
diff --git a/docs/extensions.md b/docs/extensions.md index 7152ef6..ae5cb5c 100644 --- a/docs/extensions.md +++ b/docs/extensions.md @@ -25,11 +25,6 @@ inst.extensionDir() # where loaded successfully are returned inst.extensionList(loadedOnly = False) -# Mark an extension as loaded -# This should normally not be used and exists mainly -# for use by the extension manager -inst.flagAsLoaded("name_of_extension") - # Returns the path of the custom location to # where missing dependencies should be pip installed inst.pythonPackagePath() diff --git a/plugins/pythonextensions/pythonextensionsplugin.cpp b/plugins/pythonextensions/pythonextensionsplugin.cpp index bdb2687..3136bbc 100644 --- a/plugins/pythonextensions/pythonextensionsplugin.cpp +++ b/plugins/pythonextensions/pythonextensionsplugin.cpp @@ -146,11 +146,6 @@ QStringList PythonExtensionsPlugin::extensionList(const bool loadedOnly) return extension_list; } -void PythonExtensionsPlugin::flagAsLoaded(const QString &extension) -{ - m_loadedExtensions << extension; -} - QString PythonExtensionsPlugin::pythonPackagePath() { if (extensionDir().exists()) { diff --git a/plugins/pythonextensions/pythonextensionsplugin.h b/plugins/pythonextensions/pythonextensionsplugin.h index 29010d4..106ee63 100644 --- a/plugins/pythonextensions/pythonextensionsplugin.h +++ b/plugins/pythonextensions/pythonextensionsplugin.h @@ -51,7 +51,6 @@ public: QDir extensionDir(); QStringList extensionList(const bool loadedOnly = false); - void flagAsLoaded(const QString &extension); QString pythonPackagePath(); private: QStringList m_loadedExtensions; |