[GRASS-SVN] r58334 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 29 09:29:49 PST 2013


Author: martinl
Date: 2013-11-29 09:29:49 -0800 (Fri, 29 Nov 2013)
New Revision: 58334

Modified:
   grass/trunk/lib/vector/Vlib/build.c
Log:
vlib: set level2 only when built level >= GV_BUILD_NONE
      remove unused variables


Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c	2013-11-29 17:28:50 UTC (rev 58333)
+++ grass/trunk/lib/vector/Vlib/build.c	2013-11-29 17:29:49 UTC (rev 58334)
@@ -181,10 +181,8 @@
     struct P_isle *Isle;
     struct P_area *Area;
     struct P_topo_b *topo;
-    double size, cur_size;
     struct bound_box box, *abox;
     static struct boxlist *List = NULL;
-    static struct line_pnts *APoints;
     static BOX_SIZE *size_list;
     static int alloc_size_list = 0;
 
@@ -202,7 +200,6 @@
 
     if (!List) {
 	List = Vect_new_boxlist(1);
-	APoints = Vect_new_line_struct();
 	alloc_size_list = 10;
 	size_list = G_malloc(alloc_size_list * sizeof(BOX_SIZE));
     }
@@ -259,7 +256,6 @@
     }
 
     sel_area = 0;
-    size = cur_size = -1;
     for (i = 0; i < List->n_values; i++) {
 	area = size_list[i].i;
 	G_debug(3, "area = %d", area);
@@ -861,10 +857,10 @@
     }
 
     if (build > GV_BUILD_NONE) {
+        Map->level = LEVEL_2;
 	G_verbose_message(_("Topology was built"));
     }
 
-    Map->level = LEVEL_2;
     plus->mode = GV_MODE_WRITE;
 
     if (build == GV_BUILD_ALL) {



More information about the grass-commit mailing list