PATCH: Remove useless global variable links in runtest.exp

Jacob Bachmeyer <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
This was noticed during ongoing work to improve Automake integration.  
My guess is that some older version did use these variables in these 
procs, but that was changed before the code was imported into whatever 
became the Git repository.

----
ChangeLog entry:
	* runtest.exp (load_config): Remove unused global variable links.
	(load_generic_config): Likewise.
	(load_board_description): Likewise.
	(load_base_board_description): Likewise.
----
patch:
----
diff --git a/runtest.exp b/runtest.exp
index 327131a..a389c53 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1255,9 +1255,7 @@ clone_output "\n\t\t=== $tool tests ===\n"
 #
 
 proc load_generic_config { name } {
-    global srcdir
     global libdir
-    global env
     global board
     global board_info
     global boards_dir
@@ -1286,7 +1284,6 @@ proc load_generic_config { name } {
 #
 proc load_config { args } {
     global srcdir
-    global board_type
 
     set found 0
 
@@ -1330,9 +1327,7 @@ proc load_tool_target_config { name } {
 #
 
 proc load_board_description { board_name args } {
-    global srcdir
     global libdir
-    global env
     global board
     global board_info
     global boards_dir
@@ -1398,9 +1393,7 @@ proc load_board_description { board_name args } {
 #
 
 proc load_base_board_description { board_name } {
-    global srcdir
     global libdir
-    global env
     global board
     global board_info
     global board_type

----


-- Jacob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.