[glib] Revert "gvalue: Add g_value_clear method"
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Revert "gvalue: Add g_value_clear method"
- Date: Fri, 2 Oct 2015 14:09:06 +0000 (UTC)
commit b4a3c1bb1194d99efb547120bbff2f4442ef505d
Author: Dan Winship <danw gnome org>
Date: Fri Oct 2 09:55:29 2015 -0400
Revert "gvalue: Add g_value_clear method"
This reverts commit 1233962b54de68bfdf06cfde244693ab7fd3558a.
docs/reference/gobject/gobject-sections.txt | 1 -
gobject/gvalue.c | 20 --------------------
gobject/gvalue.h | 2 --
3 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/docs/reference/gobject/gobject-sections.txt b/docs/reference/gobject/gobject-sections.txt
index ce72fca..0f14f93 100644
--- a/docs/reference/gobject/gobject-sections.txt
+++ b/docs/reference/gobject/gobject-sections.txt
@@ -450,7 +450,6 @@ g_value_init
g_value_copy
g_value_reset
g_value_unset
-g_value_clear
g_value_init_from_instance
g_value_set_instance
g_value_fits_pointer
diff --git a/gobject/gvalue.c b/gobject/gvalue.c
index c91584e..5277b77 100644
--- a/gobject/gvalue.c
+++ b/gobject/gvalue.c
@@ -274,26 +274,6 @@ g_value_unset (GValue *value)
}
/**
- * g_value_clear:
- * @value: An #GValue structure.
- *
- * Clears the current value in @value and "unsets" the type,
- * this releases all resources associated with this GValue.
- * Unlike g_value_unset() this method will accept uninitialized
- * (zero-filled) #GValue structure as @value.
- *
- * Since 2.48
- */
-void
-g_value_clear (GValue *value)
-{
- if (value && value->g_type == 0)
- return;
-
- g_value_unset (value);
-}
-
-/**
* g_value_fits_pointer:
* @value: An initialized #GValue structure.
*
diff --git a/gobject/gvalue.h b/gobject/gvalue.h
index 12b7975..fd924f6 100644
--- a/gobject/gvalue.h
+++ b/gobject/gvalue.h
@@ -134,8 +134,6 @@ GLIB_AVAILABLE_IN_ALL
GValue* g_value_reset (GValue *value);
GLIB_AVAILABLE_IN_ALL
void g_value_unset (GValue *value);
-GLIB_AVAILABLE_IN_2_48
-void g_value_clear (GValue *value);
GLIB_AVAILABLE_IN_ALL
void g_value_set_instance (GValue *value,
gpointer instance);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]