Selaa lähdekoodia

disable unused feature

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39666 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 vuotta sitten
vanhempi
commit
b251bc6589
1 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 7 5
      lib/vector/Vlib/open.c

+ 7 - 5
lib/vector/Vlib/open.c

@@ -519,6 +519,8 @@ int Vect_open_update(struct Map_info *Map, const char *name, const char *mapset)
     
     ret = Vect__open_old(Map, name, mapset, NULL, 1, 0);
     
+    /* the update lists are unused, a waste of time and memory */
+    /*
     if (ret > 0) {
 	Map->plus.do_uplist = 1;
 
@@ -528,11 +530,8 @@ int Vect_open_update(struct Map_info *Map, const char *name, const char *mapset)
 	Map->plus.upnodes = NULL;
 	Map->plus.n_upnodes = 0;
 	Map->plus.alloc_upnodes = 0;
-
-	/* read spatial index */
-	/* Build spatial index from topo */
-	/* Vect_build_sidx_from_topo(Map); */
     }
+    */
 
     return ret;
 }
@@ -581,7 +580,9 @@ int Vect_open_update_head(struct Map_info *Map, const char *name,
 
     ret = Vect__open_old(Map, name, mapset, NULL, 1, 1);
 
-    if (ret > 0) {		/* Probably not important */
+    /* the update lists are unused, a waste of time and memory */
+    /*
+    if (ret > 0) {
 	Map->plus.do_uplist = 1;
 
 	Map->plus.uplines = NULL;
@@ -591,6 +592,7 @@ int Vect_open_update_head(struct Map_info *Map, const char *name,
 	Map->plus.n_upnodes = 0;
 	Map->plus.alloc_upnodes = 0;
     }
+    */
 
     return ret;
 }