Skip to content

Commit

Permalink
DIRECTOR: Lingo: Simplify CodeId
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent fa7725a commit f67bcdc
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 83 deletions.
2 changes: 2 additions & 0 deletions engines/director/lingo/lingo-code.cpp
Expand Up @@ -220,6 +220,8 @@ bool Lingo::verify(Symbol *s) {
}

void Lingo::c_eval() {
g_lingo->c_varpush();

Datum d;
d = g_lingo->pop();

Expand Down
15 changes: 0 additions & 15 deletions engines/director/lingo/lingo-codegen.cpp
Expand Up @@ -206,21 +206,6 @@ void Lingo::codeArgStore() {
}
}

int Lingo::codeId(Common::String &s) {
return codeId_(s);
}

int Lingo::codeId_(Common::String &name) {
int ret;

ret = code1(c_varpush);

codeString(name.c_str());
code1(c_eval);

return ret;
}

void Lingo::codeLabel(int label) {
_labelstack.push_back(label);
}
Expand Down

0 comments on commit f67bcdc

Please sign in to comment.