]> err.no Git - mapper/commitdiff
Remove ifdefs. We now have simple stubs if no connection manager is used.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 18 Oct 2007 22:59:31 +0000 (01:59 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 18 Oct 2007 22:59:31 +0000 (01:59 +0300)
src/map-download.c

index 14763497e61e2e78881bbd36def100226422bb15..fa292fa32dd3f3e7df498066ed773c331497f0b1 100644 (file)
@@ -34,6 +34,7 @@
 #include "latlon.h"
 #include "gpx.h"
 #include "map-download.h"
+#include "iap.h"
 
 static guint _num_downloads=0;
 static guint _curr_download=0;
@@ -370,11 +371,7 @@ else {
                /* removal automatically calls progress_update_info_free(). */
                g_tree_steal(_downloading_tree, pui);
                g_tree_insert(_pui_tree, pui, pui);
-#ifdef WITH_OSSO
                if (iap_is_connected() && !_curl_sid)
-#else
-               if (!_curl_sid)
-#endif
                        _curl_sid = g_timeout_add(100,(GSourceFunc)map_download_timeout, NULL);
                /* Don't do anything else. */
                return FALSE;
@@ -409,9 +406,7 @@ map_initiate_download(guint tilex, guint tiley, guint zoom, gint retries)
 {
 ProgressUpdateInfo *pui;
 
-#ifdef WITH_OSSO
 iap_connect();
-#endif
 
 pui = g_slice_new(ProgressUpdateInfo);
 pui->tilex = tilex;
@@ -433,11 +428,7 @@ pui->dest_str = NULL;
 pui->file = NULL;
 
 g_tree_insert(_pui_tree, pui, pui);
-#ifdef WITH_OSSO
 if (iap_is_connected() && !_curl_sid)
-#else
-if (!_curl_sid)
-#endif
        _curl_sid = g_timeout_add(100, (GSourceFunc) map_download_timeout, NULL);
 
 if (!_num_downloads++ && !_download_banner) {