]> mj.ucw.cz Git - leo.git/commitdiff
Labelling: Deletion of debug prints in sym.c
authorKarryanna <karry@karryanna.cz>
Tue, 12 May 2015 12:27:12 +0000 (14:27 +0200)
committerKarryanna <karry@karryanna.cz>
Tue, 12 May 2015 12:27:12 +0000 (14:27 +0200)
sym.c

diff --git a/sym.c b/sym.c
index 334568161c24f007a86936f6cf816e03fc567331..00d89416b3e798d4ce3f16405e2d420847771aaa 100644 (file)
--- a/sym.c
+++ b/sym.c
@@ -71,13 +71,6 @@ void *sym_new(enum symbolizer_type type, struct osm_object *o, size_t size)
 
 void sym_plan(struct symbol *sym, z_index_t zindex)
 {
-  // DEBUG
-  if (sym->type == SYMBOLIZER_TEXT)
-  {
-    struct sym_text *st = (struct sym_text *) sym;
-    printf("In planner: Planning text %s at [%.2f; %.2f]\n", osm_val_decode(st->text), st->x, st->y);
-  }
-
   struct sym_planned *p = GARY_PUSH(sym_planned);
   p->sym = sym;
   p->zindex = zindex;
@@ -143,16 +136,6 @@ static void sym_draw(struct symbol *sym, z_index_t zindex, struct svg *svg)
 
 void sym_draw_all(struct svg *svg)
 {
-  for (uns i = 0; i < GARY_SIZE(sym_planned); i++)
-  {
-    // DEBUG
-    if (sym_planned[i].sym->type == SYMBOLIZER_TEXT)
-    {
-      struct sym_text *st = (struct sym_text *) sym_planned[i].sym;
-      printf("In planner: Will draw text %s at [%.2f; %.2f]\n", osm_val_decode(st->text), st->x, st->y);
-    }
-  }
-
   msg(L_INFO, "Sorting %u symbols by depth", (uns) GARY_SIZE(sym_planned));
   sym_sort(sym_planned, GARY_SIZE(sym_planned));
 
@@ -161,14 +144,5 @@ void sym_draw_all(struct svg *svg)
 
   msg(L_INFO, "Drawing symbols");
   for (uns i = 0; i < GARY_SIZE(sym_planned); i++)
-  {
-    // DEBUG
-    if (sym_planned[i].sym->type == SYMBOLIZER_TEXT)
-    {
-      struct sym_text *st = (struct sym_text *) sym_planned[i].sym;
-      printf("In planner: Will draw text %s at [%.2f; %.2f]\n", osm_val_decode(st->text), st->x, st->y);
-    }
-
     sym_draw(sym_planned[i].sym, sym_planned[i].zindex, svg);
-  }
 }