Skip to content

Commit 6caf0b6

Browse files
committed
ts: remove unnecessary code in answer build procs
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent 39761df commit 6caf0b6

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

testsuite/config/base-config.exp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@ proc shell_text {test_shell val {re_mode 0}} {
225225
}
226226

227227
proc shell_val {test_shell val {re_mode 0}} {
228-
if {$re_mode} {
229-
set esc "\\"
230-
} else {
231-
set esc ""
232-
}
233-
234228
if {$val ne "(.*)"} {
235229
switch -- $test_shell {
236230
{sh} - {bash} - {ksh} - {zsh} - {csh} - {tcsh} - {fish} {
@@ -369,12 +363,6 @@ proc shell_unset {test_shell var {re_mode 0}} {
369363
}
370364

371365
proc shell_alias {test_shell var val {re_mode 0} {escval 1}} {
372-
if {$re_mode} {
373-
set esc "\\"
374-
} else {
375-
set esc ""
376-
}
377-
378366
if {$escval} {
379367
set val [shell_val $test_shell $val $re_mode]
380368
}
@@ -401,12 +389,6 @@ proc shell_alias {test_shell var val {re_mode 0} {escval 1}} {
401389
}
402390

403391
proc shell_unalias {test_shell var {re_mode 0}} {
404-
if {$re_mode} {
405-
set esc "\\"
406-
} else {
407-
set esc ""
408-
}
409-
410392
switch -- $test_shell {
411393
{sh} - {bash} - {ksh} - {zsh} {
412394
set answer "unalias $var 2>/dev/null || true;"

0 commit comments

Comments
 (0)