summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-17 05:09:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-17 05:09:51 -0400
commita1db45dca1e30829e7c55f0798f71d596d6d4ed6 (patch)
tree4b3c20615ebb6f385c3c1b7a90c490aedf36f6db /src
parent06bbe56701568ac5c6dc9b80489d2e0c0b623d77 (diff)
downloadfork-ledger-a1db45dca1e30829e7c55f0798f71d596d6d4ed6.tar.gz
fork-ledger-a1db45dca1e30829e7c55f0798f71d596d6d4ed6.tar.bz2
fork-ledger-a1db45dca1e30829e7c55f0798f71d596d6d4ed6.zip
Removed more dead code.
Diffstat (limited to 'src')
-rw-r--r--src/token.cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/token.cc b/src/token.cc
index 87ea2f62..7c4014c0 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -58,56 +58,12 @@ void expr_t::token_t::parse_ident(std::istream& in)
std::isalnum(c) || c == '_' || c == '.' || c == '-');
switch (buf[0]) {
-#if 0
- case 'a':
- if (std::strcmp(buf, "and") == 0)
- kind = KW_AND;
- break;
- case 'd':
- if (std::strcmp(buf, "div") == 0)
- kind = KW_DIV;
- break;
- case 'e':
- if (std::strcmp(buf, "eq") == 0)
- kind = EQUAL;
- break;
-#endif
case 'f':
if (std::strcmp(buf, "false") == 0) {
kind = VALUE;
value = false;
}
break;
-#if 0
- case 'g':
- if (std::strcmp(buf, "gt") == 0)
- kind = GREATER;
- else if (std::strcmp(buf, "ge") == 0)
- kind = GREATEREQ;
- break;
- case 'i':
- if (std::strcmp(buf, "is") == 0)
- kind = EQUAL;
- break;
- case 'l':
- if (std::strcmp(buf, "lt") == 0)
- kind = LESS;
- else if (std::strcmp(buf, "le") == 0)
- kind = LESSEQ;
- break;
- case 'm':
- if (std::strcmp(buf, "mod") == 0)
- kind = KW_MOD;
- break;
- case 'n':
- if (std::strcmp(buf, "ne") == 0)
- kind = NEQUAL;
- break;
- case 'o':
- if (std::strcmp(buf, "or") == 0)
- kind = KW_OR;
- break;
-#endif
case 't':
if (std::strcmp(buf, "true") == 0) {
kind = VALUE;