[glibmm] Glib::Value: Remove obsolete create_param_spec() overload
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Glib::Value: Remove obsolete create_param_spec() overload
- Date: Fri, 18 Jan 2019 15:12:44 +0000 (UTC)
commit 1078af3089d3807874d1d9e095eae5279078ea63
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Jan 18 16:09:14 2019 +0100
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.
glib/glibmm/value.cc | 35 -----------------------------------
glib/glibmm/value.h | 9 ---------
glib/src/value_basictypes.cc.m4 | 6 ------
glib/src/value_basictypes.h.m4 | 1 -
4 files changed, 51 deletions(-)
---
diff --git a/glib/glibmm/value.cc b/glib/glibmm/value.cc
index 34de3093..75685fda 100644
--- a/glib/glibmm/value.cc
+++ b/glib/glibmm/value.cc
@@ -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
diff --git a/glib/glibmm/value.h b/glib/glibmm/value.h
index c423029d..6882db4c 100644
--- a/glib/glibmm/value.h
+++ b/glib/glibmm/value.h
@@ -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:
diff --git a/glib/src/value_basictypes.cc.m4 b/glib/src/value_basictypes.cc.m4
index 5f527472..1b8ba0dd 100644
--- a/glib/src/value_basictypes.cc.m4
+++ b/glib/src/value_basictypes.cc.m4
@@ -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
{
diff --git a/glib/src/value_basictypes.h.m4 b/glib/src/value_basictypes.h.m4
index b6a3c835..40d980e2 100644
--- a/glib/src/value_basictypes.h.m4
+++ b/glib/src/value_basictypes.h.m4
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]