From 5eab5f5bdab0c6ddc09d7905af6aa923a5f0ab85 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 16 Mar 2009 01:30:40 +0100 Subject: [PATCH] Drop Glib version guards from unit tests --- tests/bookmarks.c | 4 ---- tests/browser.c | 4 ---- tests/completion.c | 4 ---- tests/extensions.c | 4 ---- tests/properties.c | 4 ---- 5 files changed, 20 deletions(-) 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