dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: Remove useless global variable links in runtest.exp


From: Jacob Bachmeyer
Subject: PATCH: Remove useless global variable links in runtest.exp
Date: Tue, 04 Dec 2018 18:43:22 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]