From: Christian Dywan Date: Mon, 16 Mar 2009 00:30:40 +0000 (+0100) Subject: Drop Glib version guards from unit tests X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eab5f5bdab0c6ddc09d7905af6aa923a5f0ab85;p=midori Drop Glib version guards from unit tests --- diff --git a/tests/bookmarks.c b/tests/bookmarks.c index 8f759cd0..b27138cf 100644 --- a/tests/bookmarks.c +++ b/tests/bookmarks.c @@ -16,8 +16,6 @@ #include "midori.h" #include "midori-bookmarks.h" -#if GLIB_CHECK_VERSION(2, 16, 0) - static void bookmarks_panel_create (void) { @@ -157,5 +155,3 @@ main (int argc, return g_test_run (); } - -#endif diff --git a/tests/browser.c b/tests/browser.c index 63e3fa11..f6b3ee37 100644 --- a/tests/browser.c +++ b/tests/browser.c @@ -17,8 +17,6 @@ #include "midori-stock.h" #include "sokoke.h" -#if GLIB_CHECK_VERSION (2, 16, 0) - static void browser_create (void) { @@ -62,5 +60,3 @@ main (int argc, return g_test_run (); } - -#endif diff --git a/tests/completion.c b/tests/completion.c index e6ee0768..c99edeac 100644 --- a/tests/completion.c +++ b/tests/completion.c @@ -15,8 +15,6 @@ #include "midori.h" -#if GLIB_CHECK_VERSION(2, 16, 0) - typedef struct { const gchar* uri; @@ -293,5 +291,3 @@ main (int argc, return g_test_run (); } - -#endif diff --git a/tests/extensions.c b/tests/extensions.c index 69638fbd..edc87492 100644 --- a/tests/extensions.c +++ b/tests/extensions.c @@ -15,8 +15,6 @@ #include "midori.h" -#if GLIB_CHECK_VERSION(2, 16, 0) - const gpointer magic = (gpointer)0xdeadbeef; static void @@ -137,5 +135,3 @@ main (int argc, return g_test_run (); } - -#endif diff --git a/tests/properties.c b/tests/properties.c index 0c163957..cdcacd60 100644 --- a/tests/properties.c +++ b/tests/properties.c @@ -17,8 +17,6 @@ #include "midori-bookmarks.h" #include "sokoke.h" -#if GLIB_CHECK_VERSION(2, 16, 0) - #define pspec_is_writable(pspec) (pspec->flags & G_PARAM_WRITABLE \ && !(pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))) @@ -185,5 +183,3 @@ main (int argc, return g_test_run (); } - -#endif