From: Alex Henrie Date: Mon, 25 Jan 2021 00:29:35 +0000 (-0700) Subject: Remove dead assignments from self(Bottom|Top|Right|Left) X-Git-Tag: 2.46.1~10^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1ab5676548ba76f221599649538b72c31ec9b4c;p=graphviz Remove dead assignments from self(Bottom|Top|Right|Left) --- diff --git a/lib/common/splines.c b/lib/common/splines.c index d6f0d0c6b..92ecc96f7 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -834,7 +834,6 @@ static void selfBottom (edge_t* edges[], int ind, int cnt, stepx = (sizex / 2.) / cnt; stepx = MAX(stepx,2.); - pointn = 0; np = ND_coord(n); tp = ED_tail_port(e).p; tp.x += np.x; @@ -905,7 +904,6 @@ selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy, stepx = (sizex / 2.) / cnt; stepx = MAX(stepx, 2.); - pointn = 0; np = ND_coord(n); tp = ED_tail_port(e).p; tp.x += np.x; @@ -1010,7 +1008,6 @@ selfRight (edge_t* edges[], int ind, int cnt, double stepx, double sizey, stepy = (sizey / 2.) / cnt; stepy = MAX(stepy, 2.); - pointn = 0; np = ND_coord(n); tp = ED_tail_port(e).p; tp.x += np.x; @@ -1083,7 +1080,6 @@ selfLeft (edge_t* edges[], int ind, int cnt, double stepx, double sizey, stepy = (sizey / 2.) / cnt; stepy = MAX(stepy,2.); - pointn = 0; np = ND_coord(n); tp = ED_tail_port(e).p; tp.x += np.x;