From: Matthias Clasen Date: Thu, 20 Jul 2023 17:11:44 +0000 (-0400) Subject: gdk: Drop unnecessary conditionals X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~54^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fd4da471259521724cafec24ce976401b00dd805;p=gtk4.git gdk: Drop unnecessary conditionals We require GLib 2.76 now. --- diff --git a/gdk/gdkprivate.h b/gdk/gdkprivate.h index e1a59c5921..fd2972f9aa 100644 --- a/gdk/gdkprivate.h +++ b/gdk/gdkprivate.h @@ -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 -