From: Kaj-Michael Lang Date: Tue, 18 Mar 2008 11:06:06 +0000 (+0200) Subject: Remove useless debug output X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd9dc773300b288f0165f147590a5eaf9726b7b;p=mapper Remove useless debug output --- diff --git a/src/map-download.c b/src/map-download.c index 32cdd1a..ab98d11 100644 --- a/src/map-download.c +++ b/src/map-download.c @@ -396,6 +396,7 @@ gtk_progress_bar_set_fraction(_progress_item, currd/(double)numd); gboolean map_download_idle_refresh(ProgressUpdateInfo * pui) { +guint tmp=0; /* Test if download succeeded (only if retries != 0). */ if (!pui->retries || g_file_test(pui->dest_str, G_FILE_TEST_EXISTS)) { gint zoom_diff = pui->zoom - _zoom; @@ -408,7 +409,7 @@ if (!pui->retries || g_file_test(pui->dest_str, G_FILE_TEST_EXISTS)) { * this tile, then we may have to update more than one tile. */ for (tilex = pui->tilex << zoom_diff, tilex_end = tilex + (1 << zoom_diff); tilex < tilex_end; tilex++) { for (tiley = pui->tiley << zoom_diff, tiley_end = tiley + (1 << zoom_diff); tiley < tiley_end; tiley++) { - g_debug("MDIR: %d %d", tilex, tiley); + tmp++; if (map_render_tile(tilex, tiley, ((tilex - _base_tilex) << TILE_SIZE_P2), ((tiley - _base_tiley) << TILE_SIZE_P2), TRUE)==TRUE) { map_render_data(); gtk_widget_queue_draw_area(_map_widget, @@ -418,6 +419,7 @@ if (!pui->retries || g_file_test(pui->dest_str, G_FILE_TEST_EXISTS)) { } } } + g_debug("*** MDIR LOOP: %u", tmp); } } /* Else the download failed. Update retries and maybe try again. */