[gtksourceview] Version macros: remove 3.99 special case



commit 1336bc4a197a3fa44466cc7d57bacd3e40205341
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Apr 26 11:59:56 2018 +0200

    Version macros: remove 3.99 special case
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791611

 gtksourceview/gtksourceversion.h.in |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index f46aa09..7e41ede 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -227,16 +227,9 @@ G_BEGIN_DECLS
 #define GTK_SOURCE_VERSION_4_0 (G_ENCODE_VERSION (4, 0))
 
 /* Define GTK_SOURCE_VERSION_CUR_STABLE */
-/* TODO: remove 3.99 special case once GtkSourceView 4 is released, since it'll
- * be dead code (GTK_SOURCE_MAJOR_VERSION will never be equal to 3 anymore).
- */
 #ifndef __GTK_DOC_IGNORE__
 #  if (GTK_SOURCE_MINOR_VERSION % 2)
-#    if ((GTK_SOURCE_MAJOR_VERSION == 3) && (GTK_SOURCE_MINOR_VERSION == 99))
-#      define GTK_SOURCE_VERSION_CUR_STABLE (G_ENCODE_VERSION (GTK_SOURCE_MAJOR_VERSION + 1, 0))
-#    else
-#      define GTK_SOURCE_VERSION_CUR_STABLE (G_ENCODE_VERSION (GTK_SOURCE_MAJOR_VERSION, 
GTK_SOURCE_MINOR_VERSION + 1))
-#    endif
+#    define GTK_SOURCE_VERSION_CUR_STABLE (G_ENCODE_VERSION (GTK_SOURCE_MAJOR_VERSION, 
GTK_SOURCE_MINOR_VERSION + 1))
 #  else
 #    define GTK_SOURCE_VERSION_CUR_STABLE (G_ENCODE_VERSION (GTK_SOURCE_MAJOR_VERSION, 
GTK_SOURCE_MINOR_VERSION))
 #  endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]