summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2015-11-28 19:49:18 +0100
committerJens Georg <mail@jensge.org>2015-12-05 13:44:57 +0100
commit3d38f2fc63c9df9f8c562651b460d4cc6abc0af4 (patch)
treef967a3508ab0171605d8ac7b7611e207d220fb79 /examples
parent4440a1332af3dd377791777b40cfb8113e82d6b0 (diff)
downloadgupnp-3d38f2fc63c9df9f8c562651b460d4cc6abc0af4.tar.gz
Remove GLIB_CHECK_VERSION <= 2.40
We require 2.40 by the build, so the macros are not needed anymore. Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/light-client.c4
-rw-r--r--examples/light-server.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/examples/light-client.c b/examples/light-client.c
index cdb9aab..9fa31fa 100644
--- a/examples/light-client.c
+++ b/examples/light-client.c
@@ -120,10 +120,6 @@ main (int argc, char **argv)
GUPnPContext *context;
GUPnPControlPoint *cp;
-#if !GLIB_CHECK_VERSION(2,35,0)
- g_type_init ();
-#endif
-
optionContext = g_option_context_new ("[on|off|toggle]");
g_option_context_add_main_entries (optionContext, entries, NULL);
if (!g_option_context_parse (optionContext, &argc, &argv, &error))
diff --git a/examples/light-server.c b/examples/light-server.c
index f1b7162..c68874e 100644
--- a/examples/light-server.c
+++ b/examples/light-server.c
@@ -133,10 +133,6 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
GUPnPRootDevice *dev;
GUPnPServiceInfo *service;
-#if !GLIB_CHECK_VERSION(2,35,0)
- g_type_init ();
-#endif
-
optionContext = g_option_context_new (NULL);
g_option_context_add_main_entries (optionContext, entries, NULL);
if (!g_option_context_parse (optionContext, &argc, &argv, &error))