diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-31 01:15:50 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-31 01:15:50 -0700 |
commit | 7ac593273e25d5ce39104dc1752660a43a29f61d (patch) | |
tree | 1f0a18a2f49a61460ff8d7c1c3de375af37395d4 /tokenizer.cpp | |
parent | a529fc9d83295fdf9418436b68d056162ba8231b (diff) |
Remove a bunch of dead code identified by cppcheck
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r-- | tokenizer.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp index 980cac4c..dca22281 100644 --- a/tokenizer.cpp +++ b/tokenizer.cpp @@ -542,13 +542,6 @@ int oflags_for_redirection_type(enum token_type type) } } -wchar_t tok_last_quote(tokenizer_t *tok) -{ - CHECK(tok, 0); - - return tok->last_quote; -} - /** Test if a character is whitespace. Differs from iswspace in that it does not consider a newline to be whitespace. @@ -706,36 +699,6 @@ void tok_next(tokenizer_t *tok) } -enum token_type tok_peek_next(tokenizer_t *tok, wcstring *out_next_string) -{ - if (out_next_string != NULL) - { - out_next_string->clear(); - } - - enum token_type result = TOK_END; - if (tok_has_next(tok)) - { - int saved = tok_get_pos(tok); - tok_next(tok); - result = tok_last_type(tok); - - if (out_next_string != NULL) - { - const wchar_t *last = tok_last(tok); - out_next_string->assign(last ? last : L""); - } - - tok_set_pos(tok, saved); - } - return result; -} - -const wchar_t *tok_string(tokenizer_t *tok) -{ - return tok?tok->orig_buff:0; -} - wcstring tok_first(const wchar_t *str) { wcstring result; |