summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@gnome.org>2023-11-08 15:06:21 +0000
committerPhilip Withnall <pwithnall@gnome.org>2023-11-08 15:06:21 +0000
commit7b029e564dc95650caa1a0d5229244624d0e1d30 (patch)
treeee5b012c11beb6309810b6ee19fb94e40266d23a /girepository
parentb32da06a7c15d5f03ae03b10d88af4af0ab82dca (diff)
girepository: Remove redundant GLib version checks
Now that libgirepository is inside glib.git, it’s guaranteed access to all the latest APIs, so there’s no need for version checks. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
Diffstat (limited to 'girepository')
-rw-r--r--girepository/gdump.c6
-rw-r--r--girepository/giconstantinfo.c4
2 files changed, 0 insertions, 10 deletions
diff --git a/girepository/gdump.c b/girepository/gdump.c
index 126bc41c9..416d7c3f3 100644
--- a/girepository/gdump.c
+++ b/girepository/gdump.c
@@ -269,10 +269,8 @@ dump_signals (GType type, GOutputStream *out)
escaped_printf (out, " when=\"last\"");
else if (query.signal_flags & G_SIGNAL_RUN_CLEANUP)
escaped_printf (out, " when=\"cleanup\"");
-#if GLIB_CHECK_VERSION(2, 29, 15)
else if (query.signal_flags & G_SIGNAL_MUST_COLLECT)
escaped_printf (out, " when=\"must-collect\"");
-#endif
if (query.signal_flags & G_SIGNAL_NO_RECURSE)
escaped_printf (out, " no-recurse=\"1\"");
@@ -332,10 +330,8 @@ dump_object_type (GType type, const char *symbol, GOutputStream *out)
if (G_TYPE_IS_ABSTRACT (type))
escaped_printf (out, " abstract=\"1\"");
-#if GLIB_CHECK_VERSION (2, 70, 0)
if (G_TYPE_IS_FINAL (type))
escaped_printf (out, " final=\"1\"");
-#endif
goutput_write (out, ">\n");
@@ -450,10 +446,8 @@ dump_fundamental_type (GType type, const char *symbol, GOutputStream *out)
if (G_TYPE_IS_ABSTRACT (type))
escaped_printf (out, " abstract=\"1\"");
-#if GLIB_CHECK_VERSION (2, 70, 0)
if (G_TYPE_IS_FINAL (type))
escaped_printf (out, " final=\"1\"");
-#endif
if (G_TYPE_IS_INSTANTIATABLE (type))
escaped_printf (out, " instantiatable=\"1\"");
diff --git a/girepository/giconstantinfo.c b/girepository/giconstantinfo.c
index 62b0dccab..38a918e48 100644
--- a/girepository/giconstantinfo.c
+++ b/girepository/giconstantinfo.c
@@ -126,13 +126,9 @@ gi_constant_info_get_value (GIConstantInfo *info,
{
if (blob->type.flags.pointer)
{
-#if GLIB_CHECK_VERSION (2, 67, 5)
gsize blob_size = blob->size;
value->v_pointer = g_memdup2 (&rinfo->typelib->data[blob->offset], blob_size);
-#else
- value->v_pointer = g_memdup (&rinfo->typelib->data[blob->offset], blob->size);
-#endif
}
else
{