]> mj.ucw.cz Git - leo.git/blobdiff - labeller.c
Labelling: (Mostly) structs documentation and cleanup
[leo.git] / labeller.c
index 6185108a46dc6e3cbb9a14bbf70d5fb33a56c492..71c0f5538c56b73499192d40d7967b7e3b89b118 100644 (file)
@@ -98,10 +98,6 @@ void labeller_add_point(struct symbol *sym, struct osm_object *object, z_index_t
   r->sym = sym;
   r->zindex = zindex;
 
-  r->offset_x = 0;
-  r->offset_y = 0;
-
-  r->num_variants = 1;
   GARY_INIT(r->request.variants, 0);
 
   struct variant *v = GARY_PUSH(r->request.variants);
@@ -130,7 +126,6 @@ void labeller_notify_line(struct symbol *sym, z_index_t zindex)
   DEBUG(dbg_requests, VERBOSITY_PLACEMENT, "Adding line on %u\n", zindex);
   struct buffer_line *b = GARY_PUSH(buffer_line);
   b->line = (struct sym_line *) sym;
-  b->zindex = zindex;
 }
 
 void labeller_add_label(struct symbol *sym, struct osm_object *o, z_index_t zindex)