[GRASS-SVN] r71784 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 19 12:46:40 PST 2017
Author: mmetz
Date: 2017-11-19 12:46:40 -0800 (Sun, 19 Nov 2017)
New Revision: 71784
Modified:
grass/trunk/lib/vector/diglib/plus_node.c
Log:
diglib: code clean-up
Modified: grass/trunk/lib/vector/diglib/plus_node.c
===================================================================
--- grass/trunk/lib/vector/diglib/plus_node.c 2017-11-19 20:46:07 UTC (rev 71783)
+++ grass/trunk/lib/vector/diglib/plus_node.c 2017-11-19 20:46:40 UTC (rev 71784)
@@ -45,7 +45,7 @@
dig_node_add_line(struct Plus_head *plus, int nodeid, int lineid,
const struct line_pnts *points, int type)
{
- register int i, j, nlines;
+ register int i;
float angle;
int ret;
struct P_node *node;
@@ -53,7 +53,6 @@
G_debug(3, "dig_node_add_line(): node = %d line = %d", nodeid, lineid);
node = plus->Node[nodeid];
- nlines = node->n_lines;
/* reallocate memory */
ret = dig_node_alloc_line(node, 1);
@@ -69,7 +68,7 @@
}
G_debug(3, " angle = %f", angle);
- i = nlines;
+ i = node->n_lines;
while (i > 0) {
if (angle >= node->angles[i - 1])
break;
More information about the grass-commit
mailing list