summaryrefslogtreecommitdiffstats
path: root/src/extension/param/notebook.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-04-09 13:39:40 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-04-09 13:39:40 +0000
commitf0ad38f6fd0d18f48d92df4b55ff8352747e6b2c (patch)
tree9ead777c363db217d978be2f71126e023f6f48e3 /src/extension/param/notebook.cpp
parentRemove unused field "gui_tip" (diff)
downloadinkscape-f0ad38f6fd0d18f48d92df4b55ff8352747e6b2c.tar.gz
inkscape-f0ad38f6fd0d18f48d92df4b55ff8352747e6b2c.zip
Remove unused field "scope"
(bzr r15633.1.2)
Diffstat (limited to 'src/extension/param/notebook.cpp')
-rw-r--r--src/extension/param/notebook.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/extension/param/notebook.cpp b/src/extension/param/notebook.cpp
index 2e216e967..c61733d26 100644
--- a/src/extension/param/notebook.cpp
+++ b/src/extension/param/notebook.cpp
@@ -57,7 +57,6 @@ public:
ParamNotebookPage(const gchar * name,
const gchar * guitext,
const gchar * desc,
- const Parameter::_scope_t scope,
bool gui_hidden,
Inkscape::Extension::Extension * ext,
Inkscape::XML::Node * xml);
@@ -73,11 +72,10 @@ public:
ParamNotebookPage::ParamNotebookPage(const gchar * name,
const gchar * guitext,
const gchar * desc,
- const Parameter::_scope_t scope,
bool gui_hidden,
Inkscape::Extension::Extension * ext,
Inkscape::XML::Node * xml)
- : Parameter(name, guitext, desc, scope, gui_hidden, /*indent*/ 0, ext)
+ : Parameter(name, guitext, desc, gui_hidden, /*indent*/ 0, ext)
{
parameters = NULL;
@@ -151,8 +149,6 @@ ParamNotebookPage::makepage (Inkscape::XML::Node * in_repr, Inkscape::Extension:
const char * name;
const char * guitext;
const char * desc;
- const char * scope_str;
- Parameter::_scope_t scope = Parameter::SCOPE_USER;
bool gui_hidden = false;
const char * gui_hide;
@@ -163,7 +159,6 @@ ParamNotebookPage::makepage (Inkscape::XML::Node * in_repr, Inkscape::Extension:
desc = in_repr->attribute("gui-description");
if (desc == NULL)
desc = in_repr->attribute("_gui-description");
- scope_str = in_repr->attribute("scope");
gui_hide = in_repr->attribute("gui-hidden");
if (gui_hide != NULL) {
if (strcmp(gui_hide, "1") == 0 ||
@@ -178,17 +173,7 @@ ParamNotebookPage::makepage (Inkscape::XML::Node * in_repr, Inkscape::Extension:
return NULL;
}
- if (scope_str != NULL) {
- if (!strcmp(scope_str, "user")) {
- scope = Parameter::SCOPE_USER;
- } else if (!strcmp(scope_str, "document")) {
- scope = Parameter::SCOPE_DOCUMENT;
- } else if (!strcmp(scope_str, "node")) {
- scope = Parameter::SCOPE_NODE;
- }
- }
-
- ParamNotebookPage * page = new ParamNotebookPage(name, guitext, desc, scope, gui_hidden, in_ext, in_repr);
+ ParamNotebookPage * page = new ParamNotebookPage(name, guitext, desc, gui_hidden, in_ext, in_repr);
/* Note: page could equal NULL */
return page;
@@ -243,12 +228,11 @@ Gtk::Widget * ParamNotebookPage::get_widget(SPDocument * doc, Inkscape::XML::Nod
ParamNotebook::ParamNotebook(const gchar * name,
const gchar * guitext,
const gchar * desc,
- const Parameter::_scope_t scope,
bool gui_hidden,
int indent,
Inkscape::Extension::Extension * ext,
Inkscape::XML::Node * xml)
- : Parameter(name, guitext, desc, scope, gui_hidden, indent, ext)
+ : Parameter(name, guitext, desc, gui_hidden, indent, ext)
{
pages = NULL;