From e8b9dd95135fcb037c7131d9cb680013b4abcb4b Mon Sep 17 00:00:00 2001 From: Nishant Bansal Date: Thu, 16 Jan 2025 16:03:09 +0530 Subject: [PATCH] remove unused variables Signed-off-by: Nishant Bansal --- raster/r.describe/dumplist.c | 3 --- raster/r.describe/local_proto.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/raster/r.describe/dumplist.c b/raster/r.describe/dumplist.c index b1ea54b20bf..c3627d40684 100644 --- a/raster/r.describe/dumplist.c +++ b/raster/r.describe/dumplist.c @@ -78,7 +78,6 @@ int long_list(struct Cell_stats *statf, DCELL dmin, DCELL dmax, { CELL cat; long count; /* not used, but required by cell stats call */ - char cat_str[MAX_STR_LEN]; JSON_Value *root_value, *range_value; JSON_Object *root_object; JSON_Array *range_array; @@ -277,7 +276,6 @@ int compact_range_list(CELL negmin, CELL negmax, CELL zero, CELL posmin, CELL posmax, CELL null, char *no_data_str, int skip_nulls, enum OutputFormat format) { - char cat_str[MAX_STR_LEN]; JSON_Value *root_value, *range_value; JSON_Object *root_object; JSON_Array *range_array; @@ -347,7 +345,6 @@ int range_list(CELL negmin, CELL negmax, CELL zero, CELL posmin, CELL posmax, CELL null, char *no_data_str, int skip_nulls, enum OutputFormat format) { - char cat_str[MAX_STR_LEN]; JSON_Value *root_value, *range_value; JSON_Object *root_object; JSON_Array *range_array; diff --git a/raster/r.describe/local_proto.h b/raster/r.describe/local_proto.h index 0ebbec32bc1..ecf51473899 100644 --- a/raster/r.describe/local_proto.h +++ b/raster/r.describe/local_proto.h @@ -21,8 +21,6 @@ #include #include -#define MAX_STR_LEN 100 - enum OutputFormat { PLAIN, JSON }; /* describe.c */