remove commented out code

This commit is contained in:
stefan schippers 2025-11-25 22:27:50 +01:00
parent d8fb5b1480
commit 86ec0d567f
3 changed files with 0 additions and 15 deletions

View File

@ -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 */

View File

@ -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;i<xctx->polygons[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);

View File

@ -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);