[GRASS-SVN] r35280 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 7 20:58:44 EST 2009


Author: glynn
Date: 2009-01-07 20:58:44 -0500 (Wed, 07 Jan 2009)
New Revision: 35280

Modified:
   grass/trunk/lib/gis/parser.c
Log:
Don't bother checking GRASS_GUI; there's only one choice


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2009-01-07 21:16:56 UTC (rev 35279)
+++ grass/trunk/lib/gis/parser.c	2009-01-08 01:58:44 UTC (rev 35280)
@@ -1878,19 +1878,7 @@
 **/
 static void G_gui(void)
 {
-    /* read environment variables first then internal GRASS variable */
-    const char *gui = getenv("GRASS_GUI");
-
-    if (!gui) {
-	gui = G_getenv("GRASS_GUI");
-    }
-
-    if (gui && strcmp(gui, "wxpython") == 0)
-	G_gui_wx();
-    else
-	G_fatal_error(_("No GUI defined in GRASS_GUI"));
-
-    return;
+    G_gui_wx();
 }
 
 /**************************************************************************



More information about the grass-commit mailing list