Explorar o código

Don't bother checking GRASS_GUI; there's only one choice

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35280 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements %!s(int64=16) %!d(string=hai) anos
pai
achega
f1bdd9a08b
Modificáronse 1 ficheiros con 1 adicións e 13 borrados
  1. 1 13
      lib/gis/parser.c

+ 1 - 13
lib/gis/parser.c

@@ -1878,19 +1878,7 @@ static void G_gui_wx(void)
 **/
 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();
 }
 
 /**************************************************************************