diff --git a/src/check.c b/src/check.c index 89813e50..f86c221b 100644 --- a/src/check.c +++ b/src/check.c @@ -218,9 +218,6 @@ void trim_wires(void) } xctx->wire[xctx->wires].prop_ptr=NULL; my_strdup(_ALLOC_ID_, &xctx->wire[xctx->wires].prop_ptr, xctx->wire[j].prop_ptr); - /* xctx->wire[xctx->wires].bus = - * get_attr_val(get_tok_value(xctx->wire[xctx->wires].prop_ptr,"bus",0)); - */ xctx->wire[xctx->wires].bus = xctx->wire[j].bus; xctx->wire[xctx->wires].node=NULL; @@ -500,9 +497,6 @@ void break_wires_at_point(double x0, double y0, int align) xctx->wire[xctx->wires].sel=0; xctx->wire[xctx->wires].prop_ptr=NULL; my_strdup(_ALLOC_ID_, &xctx->wire[xctx->wires].prop_ptr, xctx->wire[i].prop_ptr); - /* xctx->wire[xctx->wires].bus = - * get_attr_val(get_tok_value(xctx->wire[xctx->wires].prop_ptr,"bus",0)); - */ xctx->wire[xctx->wires].bus = xctx->wire[i].bus; xctx->wire[xctx->wires].node=NULL; hash_wire(XINSERT, xctx->wires, 0); /* insertion happens at beginning of list */ @@ -577,9 +571,6 @@ void break_wires_at_pins(int remove) xctx->wire[xctx->wires].sel=xctx->wire[i].sel; xctx->wire[xctx->wires].prop_ptr=NULL; my_strdup(_ALLOC_ID_, &xctx->wire[xctx->wires].prop_ptr, xctx->wire[i].prop_ptr); - /* xctx->wire[xctx->wires].bus = - * get_attr_val(get_tok_value(xctx->wire[xctx->wires].prop_ptr,"bus", 0)); - */ xctx->wire[xctx->wires].bus = xctx->wire[i].bus; xctx->wire[xctx->wires].node=NULL; hash_wire(XINSERT, xctx->wires, 0); /* insertion happens at beginning of list */ @@ -673,9 +664,6 @@ void break_wires_at_pins(int remove) set_first_sel(WIRE, xctx->wires, 0); xctx->wire[xctx->wires].prop_ptr=NULL; my_strdup(_ALLOC_ID_, &xctx->wire[xctx->wires].prop_ptr, xctx->wire[i].prop_ptr); - /* xctx->wire[xctx->wires].bus = - * get_attr_val(get_tok_value(xctx->wire[xctx->wires].prop_ptr,"bus",0)); - */ xctx->wire[xctx->wires].bus = xctx->wire[i].bus; xctx->wire[xctx->wires].node=NULL; hash_wire(XINSERT, xctx->wires, 0); /* insertion happens at beginning of list */ diff --git a/src/draw.c b/src/draw.c index f789383e..a091b2fe 100644 --- a/src/draw.c +++ b/src/draw.c @@ -744,7 +744,6 @@ void draw_symbol(int what,int c, int n,int layer,short tmp_flip, short rot, int bezier; int bus; polygon = &(symptr->poly[layer])[j]; - /* bus = get_attr_val(get_tok_value(polygon->prop_ptr, "bus", 0)) ? THICK : NOW; */ bus = polygon->bus ? THICK : NOW; bezier = !strboolcmp(get_tok_value(polygon->prop_ptr, "bezier", 0), "true"); dash = (disabled == 1) ? 3 : polygon->dash; @@ -5181,7 +5180,6 @@ void draw(void) if(draw_layer && xctx->enable_layer[c]) for(i=0;ipolygons[c]; ++i) { int bezier; xPoly *p = &xctx->poly[c][i]; - /* int bus = get_attr_val(get_tok_value(p->prop_ptr, "bus", 0)) ? THICK : NOW; */ int bus = p->bus ? THICK : NOW; bezier = 2 + !strboolcmp(get_tok_value(p->prop_ptr, "bezier", 0), "true"); drawpolygon(cc, bus, p->x, p->y, p->points, p->fill, p->dash, bezier); diff --git a/src/editprop.c b/src/editprop.c index f5cc4846..4d046b6f 100644 --- a/src/editprop.c +++ b/src/editprop.c @@ -1316,7 +1316,6 @@ static int edit_polygon_property(void) c = xctx->sel_array[ii].col; oldbezier = !strboolcmp(get_tok_value(xctx->poly[c][i].prop_ptr,"bezier",0),"true") ; - /* oldbus = get_attr_val(get_tok_value(xctx->poly[c][i].prop_ptr,"bus",0)); */ oldbus = xctx->poly[c][i].bus; if(oldprop && preserve == 1) { set_different_token(&xctx->poly[c][i].prop_ptr, (char *) tclgetvar("tctx::retval"), oldprop);