diff --git a/src/hb-glib.cc b/src/hb-glib.cc index 1da81696e..a85cb365d 100644 --- a/src/hb-glib.cc +++ b/src/hb-glib.cc @@ -127,11 +127,7 @@ hb_glib_unicode_compose (hb_unicode_funcs_t *ufuncs HB_UNUSED, hb_codepoint_t *ab, void *user_data HB_UNUSED) { -#if GLIB_CHECK_VERSION(2,29,12) return g_unichar_compose (a, b, ab); -#else - return false; -#endif } static hb_bool_t @@ -141,11 +137,7 @@ hb_glib_unicode_decompose (hb_unicode_funcs_t *ufuncs HB_UNUSED, hb_codepoint_t *b, void *user_data HB_UNUSED) { -#if GLIB_CHECK_VERSION(2,29,12) return g_unichar_decompose (ab, a, b); -#else - return false; -#endif } diff --git a/src/hb-gobject-enums.cc.tmpl b/src/hb-gobject-enums.cc.tmpl index 87a11dd40..cf90ffc32 100644 --- a/src/hb-gobject-enums.cc.tmpl +++ b/src/hb-gobject-enums.cc.tmpl @@ -31,12 +31,6 @@ /* g++ didn't like older gtype.h gcc-only code path. */ #include -#if !GLIB_CHECK_VERSION(2,29,16) -#undef __GNUC__ -#undef __GNUC_MINOR__ -#define __GNUC__ 2 -#define __GNUC_MINOR__ 6 -#endif #include "hb-gobject.h" diff --git a/src/hb-gobject-structs.cc b/src/hb-gobject-structs.cc index d66de0b23..60670b862 100644 --- a/src/hb-gobject-structs.cc +++ b/src/hb-gobject-structs.cc @@ -51,12 +51,6 @@ /* g++ didn't like older gtype.h gcc-only code path. */ #include -#if !GLIB_CHECK_VERSION(2,29,16) -#undef __GNUC__ -#undef __GNUC_MINOR__ -#define __GNUC__ 2 -#define __GNUC_MINOR__ 6 -#endif #include "hb-gobject.h" diff --git a/test/api/hb-test.h b/test/api/hb-test.h index f7ab7b393..2aec8fa23 100644 --- a/test/api/hb-test.h +++ b/test/api/hb-test.h @@ -127,19 +127,10 @@ hb_test_normalize_path (const char *path) } -#if GLIB_CHECK_VERSION(2,25,12) typedef GTestFunc hb_test_func_t; typedef GTestDataFunc hb_test_data_func_t; typedef GTestFixtureFunc hb_test_fixture_func_t; -#else -typedef void (*hb_test_func_t) (void); -typedef void (*hb_test_data_func_t) (gconstpointer user_data); -typedef void (*hb_test_fixture_func_t) (gpointer fixture, gconstpointer user_data); -#endif -#if !GLIB_CHECK_VERSION(2,30,0) -#define g_test_fail() g_error("Test failed") -#endif #ifndef g_assert_true #define g_assert_true g_assert #endif diff --git a/util/view-cairo.hh b/util/view-cairo.hh index 3a486766a..704b49fa8 100644 --- a/util/view-cairo.hh +++ b/util/view-cairo.hh @@ -76,11 +76,7 @@ struct view_cairo_t : view_options_t, output_options_t<> helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i); line.finish (); } -#if GLIB_CHECK_VERSION (2, 22, 0) g_array_unref (lines); -#else - g_array_free (lines, TRUE); -#endif } protected: