summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-08-21 12:16:10 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-08-21 12:16:48 +0100
commit5b6ada6b362f3ff160608c00bcffbb8f2b8eff7b (patch)
tree63100cde96b821d43a07bdcc90c11050fe00fc44 /json-glib/json-gobject.c
parent361e427316cc50b52e4b8f0a71a2b29d1a02ed36 (diff)
downloadjson-glib-5b6ada6b362f3ff160608c00bcffbb8f2b8eff7b.tar.gz
Remove compile time GLib version check
We depend on a new version of GLib, so we can remove a bunch of old version checks.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index b2c86d6..8b89fb5 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -534,11 +534,7 @@ json_deserialize_pspec (GValue *value,
case G_TYPE_CHAR:
if (G_VALUE_HOLDS (&node_value, G_TYPE_INT64))
{
-#if GLIB_CHECK_VERSION (2, 31, 0)
g_value_set_schar (value, (gchar) g_value_get_int64 (&node_value));
-#else
- g_value_set_char (value, (gchar) g_value_get_int64 (&node_value));
-#endif
retval = TRUE;
}
break;
@@ -707,11 +703,7 @@ json_serialize_pspec (const GValue *real_value,
case G_TYPE_CHAR:
retval = json_node_alloc ();
-#if GLIB_CHECK_VERSION (2, 31, 0)
json_node_init_int (retval, g_value_get_schar (real_value));
-#else
- json_node_init_int (retval, g_value_get_char (real_value));
-#endif
break;
case G_TYPE_UCHAR: