Remove a bunch of dead code identified by cppcheck

This commit is contained in:
ridiculousfish
2014-10-31 01:15:50 -07:00
parent a529fc9d83
commit 7ac593273e
20 changed files with 14 additions and 462 deletions

View File

@@ -13,23 +13,6 @@ Functions having to do with parser keywords, like testing if a function is a blo
#include "common.h"
#include "parser_keywords.h"
bool parser_keywords_is_switch(const wcstring &cmd)
{
if (cmd == L"--")
{
return ARG_SKIP;
}
else if (! cmd.empty() && cmd.at(0) == L'-')
{
return ARG_SWITCH;
}
else
{
return ARG_NON_SWITCH;
}
}
bool parser_keywords_skip_arguments(const wcstring &cmd)
{
return contains(cmd,