summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-01 18:47:35 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:38 +0000
commit532f3ff22891bd8d0710df5eb8e75f4d6d701d50 (patch)
tree18ac6dbb4a8cff0b723bf27b8cc778510da48c01 /src
parentRefactor a lot of the parameter handling code (diff)
downloadinkscape-532f3ff22891bd8d0710df5eb8e75f4d6d701d50.tar.gz
inkscape-532f3ff22891bd8d0710df5eb8e75f4d6d701d50.zip
Parameter: remove unused constructors
Diffstat (limited to 'src')
-rw-r--r--src/extension/prefdialog/parameter.cpp45
-rw-r--r--src/extension/prefdialog/parameter.h11
2 files changed, 0 insertions, 56 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)
{
diff --git a/src/extension/prefdialog/parameter.h b/src/extension/prefdialog/parameter.h
index f1c298fb9..af37a0ba6 100644
--- a/src/extension/prefdialog/parameter.h
+++ b/src/extension/prefdialog/parameter.h
@@ -58,17 +58,6 @@ public:
UNSET, YES, NO
};
- Parameter(gchar const *name,
- gchar const *text,
- gchar const *description,
- bool hidden,
- int indent,
- Inkscape::Extension::Extension *ext);
-
- Parameter(gchar const *name,
- gchar const *text,
- Inkscape::Extension::Extension *ext);
-
Parameter(Inkscape::XML::Node *in_repr,
Inkscape::Extension::Extension *ext);