summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-01-11 11:19:00 +0100
committerDenys Vlasenko2018-01-11 11:19:00 +0100
commitaaf7a2e24d4c284328569eff44e67e29b223822b (patch)
tree071c9dfdac276458a4b318bee5b15a7d08ce128e
parent03c36e0be1fa64dd248741dc21af2db28e70c186 (diff)
downloadbusybox-aaf7a2e24d4c284328569eff44e67e29b223822b.zip
busybox-aaf7a2e24d4c284328569eff44e67e29b223822b.tar.gz
hush: remove dead code
function old new delta done_word 761 711 -50 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/shell/hush.c b/shell/hush.c
index df1b046..6c47be8 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -3840,21 +3840,6 @@ static int done_word(o_string *word, struct parse_context *ctx)
word->o_assignment = MAYBE_ASSIGNMENT;
}
debug_printf_parse("word->o_assignment='%s'\n", assignment_flag[word->o_assignment]);
-
- if (word->has_quoted_part
- /* optimization: and if it's ("" or '') or ($v... or `cmd`...): */
- && (word->data[0] == '\0' || word->data[0] == SPECIAL_VAR_SYMBOL)
- /* (otherwise it's known to be not empty and is already safe) */
- ) {
- /* exclude "$@" - it can expand to no word despite "" */
- char *p = word->data;
- while (p[0] == SPECIAL_VAR_SYMBOL
- && (p[1] & 0x7f) == '@'
- && p[2] == SPECIAL_VAR_SYMBOL
- ) {
- p += 3;
- }
- }
command->argv = add_string_to_strings(command->argv, xstrdup(word->data));
debug_print_strings("word appended to argv", command->argv);
}