Commit 1078af30 authored by Kjell Ahlstedt's avatar Kjell Ahlstedt

Glib::Value: Remove obsolete create_param_spec() overload

Glib::Property uses the create_param_spec() method with 4 parameters.
Remove the one with only a 'name' parameter.
parent 73e7da4f
......@@ -93,13 +93,6 @@ ValueBase_Boxed::get_boxed() const
return g_value_get_boxed(&gobject_);
}
GParamSpec*
ValueBase_Boxed::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
static_cast<Glib::ParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE));
}
GParamSpec* ValueBase_Boxed::create_param_spec(const Glib::ustring& name,
const Glib::ustring& nick, const Glib::ustring& blurb, Glib::ParamFlags flags) const
{
......@@ -137,13 +130,6 @@ ValueBase_Object::get_object_copy() const
return Glib::make_refptr_for_instance<Glib::ObjectBase>(Glib::wrap_auto(data, true));
}
GParamSpec*
ValueBase_Object::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
static_cast<Glib::ParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE));
}
GParamSpec*
ValueBase_Object::create_param_spec(const Glib::ustring& name,
const Glib::ustring& nick, const Glib::ustring& blurb, Glib::ParamFlags flags) const
......@@ -189,13 +175,6 @@ ValueBase_Enum::get_enum() const
return g_value_get_enum(&gobject_);
}
GParamSpec*
ValueBase_Enum::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
static_cast<Glib::ParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE));
}
GParamSpec*
ValueBase_Enum::create_param_spec(const Glib::ustring& name,
const Glib::ustring& nick, const Glib::ustring& blurb, Glib::ParamFlags flags) const
......@@ -226,13 +205,6 @@ ValueBase_Flags::get_flags() const
return g_value_get_flags(&gobject_);
}
GParamSpec*
ValueBase_Flags::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
static_cast<Glib::ParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE));
}
GParamSpec* ValueBase_Flags::create_param_spec(const Glib::ustring& name,
const Glib::ustring& nick, const Glib::ustring& blurb, Glib::ParamFlags flags) const
{
......@@ -264,13 +236,6 @@ ValueBase_String::get_cstring() const
return "";
}
GParamSpec*
ValueBase_String::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
static_cast<Glib::ParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE));
}
GParamSpec*
ValueBase_String::create_param_spec(const Glib::ustring& name,
const Glib::ustring& nick, const Glib::ustring& blurb, Glib::ParamFlags flags) const
......
......@@ -102,7 +102,6 @@ public:
static GType value_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
......@@ -121,10 +120,8 @@ public:
static GType value_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
protected:
......@@ -142,10 +139,8 @@ public:
static GType value_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
protected:
......@@ -162,10 +157,8 @@ public:
static GType value_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
protected:
......@@ -182,10 +175,8 @@ public:
static GType value_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
protected:
......
......@@ -44,12 +44,6 @@ $1 Value<$1>::get() const
return g_value_get_$2(&gobject_);
}
GParamSpec* Value<$1>::create_param_spec(const Glib::ustring& name) const
{
return create_param_spec(name, Glib::ustring(), Glib::ustring(),
Glib::ParamFlags::READWRITE);
}
GParamSpec* Value<$1>::create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const
{
......
......@@ -40,7 +40,6 @@ public:
$1 get() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
GParamSpec* create_param_spec(const Glib::ustring& name) const;
GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
const Glib::ustring& blurb, Glib::ParamFlags flags) const;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment