diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-01 18:47:35 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:38 +0000 |
| commit | 532f3ff22891bd8d0710df5eb8e75f4d6d701d50 (patch) | |
| tree | 18ac6dbb4a8cff0b723bf27b8cc778510da48c01 /src/extension/prefdialog/parameter.cpp | |
| parent | Refactor a lot of the parameter handling code (diff) | |
| download | inkscape-532f3ff22891bd8d0710df5eb8e75f4d6d701d50.tar.gz inkscape-532f3ff22891bd8d0710df5eb8e75f4d6d701d50.zip | |
Parameter: remove unused constructors
Diffstat (limited to 'src/extension/prefdialog/parameter.cpp')
| -rw-r--r-- | src/extension/prefdialog/parameter.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/extension/prefdialog/parameter.cpp b/src/extension/prefdialog/parameter.cpp index d3293a0db..2bf83f359 100644 --- a/src/extension/prefdialog/parameter.cpp +++ b/src/extension/prefdialog/parameter.cpp @@ -189,51 +189,6 @@ guint32 Parameter::set_color(guint32 in, SPDocument *doc, Inkscape::XML::Node *n } -Parameter::Parameter(gchar const *name, gchar const *text, gchar const *description, bool hidden, int indent, Inkscape::Extension::Extension *ext) : - _description(nullptr), - _text(nullptr), - _hidden(hidden), - _indent(indent), - _extension(ext), - _name(nullptr) -{ - if (name != nullptr) { - _name = g_strdup(name); - } - - if (description != nullptr) { - _description = g_strdup(description); - } - - if (text != nullptr) { - _text = g_strdup(text); - } else { - _text = g_strdup(name); - } - - return; -} - -Parameter::Parameter (gchar const *name, gchar const *text, Inkscape::Extension::Extension *ext) : - _description(nullptr), - _text(nullptr), - _hidden(false), - _indent(0), - _extension(ext), - _name(nullptr) -{ - if (name != nullptr) { - _name = g_strdup(name); - } - if (text != nullptr) { - _text = g_strdup(text); - } else { - _text = g_strdup(name); - } - - return; -} - Parameter::Parameter (Inkscape::XML::Node *in_repr, Inkscape::Extension::Extension *ext) : _extension(ext) { |
