[GRASS-SVN] r69327 - grass/trunk/raster/r.grow.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 31 17:40:57 PDT 2016


Author: wenzeslaus
Date: 2016-08-31 17:40:57 -0700 (Wed, 31 Aug 2016)
New Revision: 69327

Modified:
   grass/trunk/raster/r.grow.distance/main.c
Log:
r.grow.distance: clean up after r68611

Modified: grass/trunk/raster/r.grow.distance/main.c
===================================================================
--- grass/trunk/raster/r.grow.distance/main.c	2016-09-01 00:37:04 UTC (rev 69326)
+++ grass/trunk/raster/r.grow.distance/main.c	2016-09-01 00:40:57 UTC (rev 69327)
@@ -139,9 +139,7 @@
     int temp_fd;
     int row, col;
     struct Colors colors;
-    struct FPRange range;
     struct History hist;
-    DCELL min, max;
     DCELL *out_row;
     double scale = 1.0;
     int invert;
@@ -392,10 +390,6 @@
     }
 
     if (dist_name) {
-	Rast_init_colors(&colors);
-	Rast_read_fp_range(dist_name, G_mapset(), &range);
-	Rast_get_fp_range_min_max(&range, &min, &max);
-
 	Rast_short_history(dist_name, "raster", &hist);
 	Rast_set_history(&hist, HIST_DATSRC_1, in_name);
 	Rast_append_format_history(&hist, "%s distance to nearest feature", opt.met->answer);



More information about the grass-commit mailing list