[GRASS-SVN] r35817 - grass/trunk/raster/r.surf.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 8 20:20:12 EST 2009


Author: hamish
Date: 2009-02-08 20:20:12 -0500 (Sun, 08 Feb 2009)
New Revision: 35817

Modified:
   grass/trunk/raster/r.surf.contour/contour.h
   grass/trunk/raster/r.surf.contour/main.c
Log:
remove unused code

Modified: grass/trunk/raster/r.surf.contour/contour.h
===================================================================
--- grass/trunk/raster/r.surf.contour/contour.h	2009-02-08 22:24:47 UTC (rev 35816)
+++ grass/trunk/raster/r.surf.contour/contour.h	2009-02-09 01:20:12 UTC (rev 35817)
@@ -27,7 +27,6 @@
 extern CELL **con;
 extern FLAG *seen, *mask;
 extern NODE *zero;
-extern CELL on, off;
 
 /* add_in.c */
 NODE *add_in(int, int, int, int, NODE *, int *);

Modified: grass/trunk/raster/r.surf.contour/main.c
===================================================================
--- grass/trunk/raster/r.surf.contour/main.c	2009-02-08 22:24:47 UTC (rev 35816)
+++ grass/trunk/raster/r.surf.contour/main.c	2009-02-09 01:20:12 UTC (rev 35817)
@@ -38,8 +38,8 @@
 CELL **con;
 FLAG *seen, *mask;
 NODE *zero;
-CELL on, off;
 
+
 int main(int argc, char *argv[])
 {
     int r, c;
@@ -51,9 +51,9 @@
     CELL value;
     struct History history;
     struct GModule *module;
-    struct Flag *flag1;
     struct Option *opt1, *opt2;
 
+
     G_gisinit(argv[0]);
 
     module = G_define_module();
@@ -75,17 +75,10 @@
     opt2->gisprompt = "new,cell,raster";
     opt2->description = _("Output elevation raster map");
 
-    flag1 = G_define_flag();
-    flag1->key = 'f';
-    flag1->description = _("Unused; retained for compatibility purposes, "
-			   "will be removed in future");
-
-    on = 1;
-    off = 0;
-
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     con_name = opt1->answer;
     alt_name = opt2->answer;
 



More information about the grass-commit mailing list