From: Antonio Borneo Date: Mon, 4 Mar 2019 16:27:32 +0000 (+0100) Subject: helper/startup.tcl: remove proc exit X-Git-Tag: v0.11.0-rc1~769 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=076802606a46dc2fe03946ab686467593e35a3d8 helper/startup.tcl: remove proc exit The TCL command exit is already replaced by the OpenOCD command exit in server/telnet_server.c, no need to redefine it in the script. Moreover, the implementation is broken because the proc ocd_throw has been removed in mid 2008 with pre-git-era commit dfbb9f3e89ae in svn rev 849. Remove completely the unused proc exit. Change-Id: I0365d740eccc47631eb459aab77b865b0877c1f7 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/4986 Tested-by: jenkins Reviewed-by: Tomas Vanek --- diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index 2578de9306..cda3a8fa33 100644 --- a/src/helper/startup.tcl +++ b/src/helper/startup.tcl @@ -3,13 +3,6 @@ # Embedded into OpenOCD executable # - -# We need to explicitly redirect this to the OpenOCD command -# as Tcl defines the exit proc -proc exit {} { - ocd_throw exit -} - # All commands are registered with an 'ocd_' prefix, while the "real" # command is a wrapper that calls this function. Its primary purpose is # to discard 'handler' command output.