gdk: Drop unnecessary conditionals
authorMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2023 17:11:44 +0000 (13:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2023 19:18:13 +0000 (15:18 -0400)
We require GLib 2.76 now.

gdk/gdkprivate.h

index e1a59c5921aca6ab1d645b184e269e4010262fe2..fd2972f9aae0fbf5ee5471834cb90efbb1f09e0b 100644 (file)
@@ -21,23 +21,3 @@ void gdk_source_set_static_name_by_id (guint       tag,
 #ifndef I_
 #define I_(string) g_intern_static_string (string)
 #endif
-
-#if !GLIB_CHECK_VERSION (2, 75, 1)
-static inline gboolean
-g_set_str (char       **str_pointer,
-           const char  *new_str)
-{
-  char *copy;
-
-  if (*str_pointer == new_str ||
-      (*str_pointer && new_str && strcmp (*str_pointer, new_str) == 0))
-    return FALSE;
-
-  copy = g_strdup (new_str);
-  g_free (*str_pointer);
-  *str_pointer = copy;
-
-  return TRUE;
-}
-#endif
-