Remove some dead code

These functions were unused.
This commit is contained in:
ridiculousfish
2022-03-20 14:48:44 -07:00
parent 7b1321f9a1
commit 1763e7d3bc
6 changed files with 1 additions and 34 deletions

View File

@@ -686,16 +686,6 @@ bool is_token_delimiter(wchar_t c, bool is_first, maybe_t<wchar_t> next) {
return c == L'(' || !tok_is_string_character(c, is_first, next);
}
wcstring tok_first(const wcstring &str) {
tokenizer_t t(str.c_str(), 0);
if (auto token = t.next()) {
if (token->type == token_type_t::string) {
return t.text_of(*token);
}
}
return {};
}
wcstring tok_command(const wcstring &str) {
tokenizer_t t(str.c_str(), 0);
while (auto token = t.next()) {