Subject: More improvements found browsing tcltest.

From: dgp <[email-masked]>
Date: Wed, 30 Jan 2013 17:15:06 +0000

---
 library/tcltest/tcltest.tcl | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 1fd6f47..d6e6487 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -986,13 +986,7 @@ proc tcltest::interpreter { {interp ""} } {
     if {[llength [info level 0]] == 1} {
 	return $tcltest
     }
-
-if {$interp eq {}} {
-set tcltest {}
-} else {
-set tcltest $interp
-}
-#    set tcltest $interp
+    set tcltest $interp
 }
 
 #####################################################################
@@ -2874,10 +2868,6 @@ proc tcltest::runAllTests { {shell ""} } {
 #     none.
 
 proc tcltest::loadTestedCommands {} {
-variable l
-if {[loadScript] eq {}} {
-return
-}
     return [uplevel 1 [loadScript]]
 }
 
-- 
cgit v0.12