summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2018-11-06 15:40:47 +0000
committerWill Thompson <will@willthompson.co.uk>2018-11-06 16:57:54 +0000
commit2d4f3d5648b248cc6ddfb505a70320edfd43213a (patch)
tree40894738d104e604901714cc0ac2528aa98c81f5
parent3eceb82044c2874c94b7c8b1a40c4db550a5318f (diff)
downloadgeoclue-2d4f3d5648b248cc6ddfb505a70320edfd43213a.tar.gz
web-source: drop GLib < 2.44 fallback path
Since 5ae456312c941ba2951563de0aef64ca5c25b0e6, GLib 2.44 has been a hard dependency.
-rw-r--r--src/gclue-web-source.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gclue-web-source.c b/src/gclue-web-source.c
index 4e45041..51ee47e 100644
--- a/src/gclue-web-source.c
+++ b/src/gclue-web-source.c
@@ -106,20 +106,8 @@ get_internet_available (void)
GNetworkMonitor *monitor = g_network_monitor_get_default ();
gboolean available;
-#if GLIB_CHECK_VERSION(2, 44, 0)
available = (g_network_monitor_get_connectivity (monitor) ==
G_NETWORK_CONNECTIVITY_FULL);
-#else
- GSocketConnectable *connectable;
-
- connectable = g_network_address_new ("location.services.mozilla.com",
- 80);
- available = g_network_monitor_can_reach (monitor,
- connectable,
- NULL,
- NULL);
- g_object_unref (connectable);
-#endif
return available;
}