From 78460aaafc1c235993aab724573d705470e82b23 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sun, 4 Jul 2021 08:32:27 +0200 Subject: Remove unnecessary version checks --- tests/old/dlna-encoding.c | 4 ---- tests/old/dlna-profile-parser.c | 4 ---- tools/gupnp-dlna-info.c | 4 ---- tools/gupnp-dlna-ls-profiles.c | 4 ---- 4 files changed, 16 deletions(-) diff --git a/tests/old/dlna-encoding.c b/tests/old/dlna-encoding.c index 6d29bd8..8a05884 100644 --- a/tests/old/dlna-encoding.c +++ b/tests/old/dlna-encoding.c @@ -205,10 +205,6 @@ main (int argc, char **argv) GUPnPDLNAProfile *profile; gchar *inputuri; -#if !GLIB_CHECK_VERSION(2,35,0) - g_type_init (); -#endif - ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin"); g_option_context_add_main_entries (ctx, options, NULL); g_option_context_add_group (ctx, gst_init_get_option_group ()); diff --git a/tests/old/dlna-profile-parser.c b/tests/old/dlna-profile-parser.c index a30bba1..20753b4 100644 --- a/tests/old/dlna-profile-parser.c +++ b/tests/old/dlna-profile-parser.c @@ -104,10 +104,6 @@ main (int argc, char **argv) GOptionContext *ctx; -#if !GLIB_CHECK_VERSION(2,35,0) - g_type_init (); -#endif - ctx = g_option_context_new (" - test to parse dlna profiles"); g_option_context_add_main_entries (ctx, options, NULL); g_option_context_add_group (ctx, gst_init_get_option_group ()); diff --git a/tools/gupnp-dlna-info.c b/tools/gupnp-dlna-info.c index 18a45b2..3287a72 100644 --- a/tools/gupnp-dlna-info.c +++ b/tools/gupnp-dlna-info.c @@ -246,10 +246,6 @@ main (int argc, GOptionContext *ctx; -#if !GLIB_CHECK_VERSION(2,35,0) - g_type_init (); -#endif - setlocale (LC_ALL, ""); ctx = g_option_context_new (" - program to extract DLNA and related metadata"); diff --git a/tools/gupnp-dlna-ls-profiles.c b/tools/gupnp-dlna-ls-profiles.c index 74d1315..980ffc6 100644 --- a/tools/gupnp-dlna-ls-profiles.c +++ b/tools/gupnp-dlna-ls-profiles.c @@ -62,10 +62,6 @@ main (int argc, char **argv) GOptionContext *ctx; -#if !GLIB_CHECK_VERSION(2,35,0) - g_type_init (); -#endif - setlocale (LC_ALL, ""); ctx = g_option_context_new (" - program to list all the DLNA profiles supported by gupnp-dlna"); -- cgit v1.2.1