[GRASS-SVN] r32316 - in grass/trunk: include lib/ogsf
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 26 16:18:03 EDT 2008
Author: martinl
Date: 2008-07-26 16:18:03 -0400 (Sat, 26 Jul 2008)
New Revision: 32316
Modified:
grass/trunk/include/ogsf_proto.h
grass/trunk/lib/ogsf/Gv3.c
Log:
ogsflib: unused Vectmem fns removed, don't track memory by default
Modified: grass/trunk/include/ogsf_proto.h
===================================================================
--- grass/trunk/include/ogsf_proto.h 2008-07-26 19:48:31 UTC (rev 32315)
+++ grass/trunk/include/ogsf_proto.h 2008-07-26 20:18:03 UTC (rev 32316)
@@ -328,9 +328,6 @@
/* From Gv3.c */
geoline *Gv_load_vect(const char *, int *);
-void add_Vectmem(int);
-void sub_Vectmem(int);
-void show_Vectmem(void);
/* From gk.c */
Keylist *gk_copy_key(Keylist *);
Modified: grass/trunk/lib/ogsf/Gv3.c
===================================================================
--- grass/trunk/lib/ogsf/Gv3.c 2008-07-26 19:48:31 UTC (rev 32315)
+++ grass/trunk/lib/ogsf/Gv3.c 2008-07-26 20:18:03 UTC (rev 32316)
@@ -23,7 +23,9 @@
#include <grass/glocale.h>
#include <grass/gstypes.h>
+/*
#define TRAK_MEM
+*/
#ifdef TRAK_MEM
static int Tot_mem = 0;
@@ -255,49 +257,3 @@
return(top);
}
-
-/*!
- \brief Tracking memory
-
- \param plus plus number
-*/
-void add_Vectmem(int plus)
-{
-#ifdef TRAK_MEM
- {
- Tot_mem+=plus;
- }
-#endif
-
- return;
-}
-
-/*!
- \brief Tracking memory
-
- \param minus mimus number
-*/
-void sub_Vectmem(int minus)
-{
-#ifdef TRAK_MEM
- {
- Tot_mem-=minus;
- }
-#endif
-
- return;
-}
-
-/*!
- \brief Tracking memory (print)
-*/
-void show_Vectmem(void)
-{
-#ifdef TRAK_MEM
- {
- G_message("Total vect memory = %d Kbytes", Tot_mem/1000);
- }
-#endif
-
- return;
-}
More information about the grass-commit
mailing list