summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-08-11 20:25:01 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-08-11 20:25:01 +0000
commit1c3c071ba0f7203bfcf322050a0d66a0a33dea66 (patch)
treed4543db43156040aeb78c060836273393262a982 /navit/graphics.c
parentf8c35827343dda04818df98664497314031fc1ae (diff)
downloadnavit-svn-1c3c071ba0f7203bfcf322050a0d66a0a33dea66.tar.gz
Fix:map_mg:Fix warnings by removing loads of dead code.|Part of #1154.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5566 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r--navit/graphics.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index 2b1671b5..864178c9 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -2863,20 +2863,19 @@ graphics_remove_selection(struct graphics *gra, struct item *item, enum item_typ
while (curr) {
struct item *sitem=curr->data;
if (item_is_equal(*item,*sitem)) {
+#if 0 /* FIXME */
if (dl) {
struct displayitem di;
- /* Unused Variable
- GHashTable *h; */
+ GHashTable *h;
di.item=*sitem;
di.label=NULL;
di.count=0;
di.item.type=type;
-#if 0 /* FIXME */
h=g_hash_table_lookup(dl->dl, GINT_TO_POINTER(di.item.type));
if (h)
g_hash_table_remove(h, &di);
-#endif
}
+#endif
g_free(sitem);
gra->selection=g_list_remove(gra->selection, curr->data);
found=1;