[GRASS-SVN] r36755 - grass/branches/develbranch_6/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 16 08:12:31 EDT 2009
Author: mmetz
Date: 2009-04-16 08:12:31 -0400 (Thu, 16 Apr 2009)
New Revision: 36755
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/build_nat.c
Log:
removing debugging code, sorry for the clutter
Modified: grass/branches/develbranch_6/lib/vector/Vlib/build_nat.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/build_nat.c 2009-04-16 11:41:37 UTC (rev 36754)
+++ grass/branches/develbranch_6/lib/vector/Vlib/build_nat.c 2009-04-16 12:12:31 UTC (rev 36755)
@@ -437,7 +437,6 @@
P_AREA *Area;
BOUND_BOX box;
struct ilist *List;
- time_t start, end;
G_debug(3, "Vect_build_nat() build = %d", build);
@@ -512,8 +511,6 @@
/* register lines, create nodes */
Vect_rewind(Map);
- time(&start);
-
G_message(_("Registering primitives..."));
i = 1;
npoints = 0;
@@ -571,9 +568,6 @@
G_message(_("%d vertices registered"), npoints);
plus->built = GV_BUILD_BASE;
-
- time(&end);
- G_message("primitives: %f", difftime(end, start));
}
if (build < GV_BUILD_AREAS)
@@ -583,7 +577,6 @@
/* Build areas */
/* Go through all bundaries and try to build area for both sides */
G_message(_("Building areas..."));
- time(&start);
for (i = 1; i <= plus->n_lines; i++) {
G_percent(i, plus->n_lines, 1);
@@ -609,9 +602,6 @@
G_message(_("%d areas built"), plus->n_areas);
G_message(_("%d isles built"), plus->n_isles);
plus->built = GV_BUILD_AREAS;
-
- time(&end);
- G_message("areas: %f", difftime(end, start));
}
if (build < GV_BUILD_ATTACH_ISLES)
@@ -620,14 +610,11 @@
/* Attach isles to areas */
if (plus->built < GV_BUILD_ATTACH_ISLES) {
G_message(_("Attaching islands..."));
- time(&start);
for (i = 1; i <= plus->n_isles; i++) {
G_percent(i, plus->n_isles, 1);
Vect_attach_isle(Map, i);
}
plus->built = GV_BUILD_ATTACH_ISLES;
- time(&end);
- G_message("isles: %f", difftime(end, start));
}
if (build < GV_BUILD_CENTROIDS)
@@ -638,7 +625,6 @@
int nlines;
G_message(_("Attaching centroids..."));
- time(&start);
nlines = Vect_get_num_lines(Map);
for (line = 1; line <= nlines; line++) {
@@ -670,12 +656,9 @@
}
}
plus->built = GV_BUILD_CENTROIDS;
- time(&end);
- G_message("centroids: %f", difftime(end, start));
}
/* Add areas to category index */
- time(&start);
for (area = 1; area <= plus->n_areas; area++) {
int c;
@@ -694,8 +677,6 @@
if (plus->Area[area]->centroid == 0 || Cats->n_cats == 0) /* no centroid or no cats */
dig_cidx_add_cat(plus, 0, 0, area, GV_AREA);
}
- time(&end);
- G_message("areas to cidx: %f", difftime(end, start));
return 1;
}
More information about the grass-commit
mailing list