浏览代码

clean up leftover bits from interactive mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45131 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 年之前
父节点
当前提交
8d9c469af0
共有 1 个文件被更改,包括 1 次插入10 次删除
  1. 1 10
      imagery/i.rectify/main.c

+ 1 - 10
imagery/i.rectify/main.c

@@ -15,7 +15,7 @@
  * PURPOSE:      calculate a transformation matrix and then convert x,y cell 
  *               coordinates to standard map coordinates for each pixel in the 
  *               image (control points can come from i.points or i.vpoints)
- * COPYRIGHT:    (C) 2002-2006 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2002-2011 by the GRASS Development Team
  *
  *               This program is free software under the GNU General Public
  *               License (>=v2). Read the file COPYING that comes with GRASS
@@ -54,8 +54,6 @@ double E21[10], N21[10];
  */
 struct Cell_head target_window;
 
-#define NFILES 15   /* ??? */
-
 void err_exit(char *, char *);
 
 /* modify this table to add new methods */
@@ -75,7 +73,6 @@ static char *make_ipol_list(void);
 int main(int argc, char *argv[])
 {
     char group[INAME_LEN], extension[INAME_LEN];
-    char result[NFILES][15];
     int order;			/* ADDED WITH CRS MODIFICATIONS */
     char *ipolname;		/* name of interpolation method */
     int method;
@@ -95,9 +92,6 @@ int main(int argc, char *argv[])
     struct Flag *c, *a;
     struct GModule *module;
 
-    setbuf(stdout, NULL);
-    setbuf(stderr, NULL);
-
     G_gisinit(argv[0]);
 
     module = G_define_module();
@@ -211,9 +205,6 @@ int main(int argc, char *argv[])
 	exit(EXIT_SUCCESS);
     }
 
-    for (i = 0; i < NFILES; i++)
-	result[i][0] = 0;
-
     ref_list = (int *)G_malloc(ref.nfiles * sizeof(int));
     new_name = (char **)G_malloc(ref.nfiles * sizeof(char *));