From 532f3ff22891bd8d0710df5eb8e75f4d6d701d50 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Thu, 1 Aug 2019 20:47:35 +0200 Subject: Parameter: remove unused constructors --- src/extension/prefdialog/parameter.cpp | 45 ---------------------------------- 1 file changed, 45 deletions(-) (limited to 'src/extension/prefdialog/parameter.cpp') 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) { -- cgit v1.2.3