From 68a6771cd153a06d99c84901330e0c30fccfb9b7 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sun, 21 Jul 2019 19:03:14 +0200 Subject: Remove effectively unused "silent" option from extensions. See also https://gitlab.com/inkscape/inkscape/merge_requests/698 --- src/extension/extension.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/extension/extension.cpp') diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp index 62d6f4590..e5cee3b8e 100644 --- a/src/extension/extension.cpp +++ b/src/extension/extension.cpp @@ -51,8 +51,7 @@ std::ofstream Extension::error_file; a name and an ID the module will be left in an errored state. */ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) - : silent(false) - , _gui(true) + : _gui(true) , execution_env(nullptr) { repr = in_repr; @@ -103,9 +102,6 @@ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementat } /* skip non-element nodes (see LP #1372200) */ } } /* check command as a dependency (see LP #505920) */ - if (!strcmp(chname, "options")) { - silent = !strcmp( child_repr->attribute("silent"), "true" ); - } child_repr = child_repr->next(); } @@ -319,16 +315,6 @@ Extension::get_repr () return repr; } -/** - \return bool - \brief Whether this extension should hide the "working, please wait" dialog -*/ -bool -Extension::is_silent () -{ - return silent; -} - /** \return The textual id of this extension \brief Get the ID of this extension - not a copy don't delete! -- cgit v1.2.3