SCI: got rid of vocabulary_lookup_sname

svn-id: r40771
This commit is contained in:
Max Horn 2009-05-21 21:49:43 +00:00
parent 25980bc29c
commit 4c17541276
3 changed files with 1 additions and 14 deletions

View File

@ -2157,7 +2157,7 @@ static int c_send(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
reg_t *vptr;
reg_t fptr;
selector_id = vocabulary_lookup_sname(s->_selectorNames, selector_name);
selector_id = script_find_selector(s, selector_name);
if (selector_id < 0) {
sciprintf("Unknown selector: \"%s\"\n", selector_name);

View File

@ -83,15 +83,6 @@ bool vocabulary_get_snames(ResourceManager *resmgr, bool isOldSci0, Common::Stri
return true;
}
int vocabulary_lookup_sname(const Common::StringList &selectorNames, const char *sname) {
for (uint pos = 0; pos < selectorNames.size(); ++pos) {
if (selectorNames[pos] == sname)
return pos;
}
return -1;
}
void vocabulary_get_opcodes(ResourceManager *resmgr, Common::Array<opcode> &o) {
int count, i = 0;
Resource* r = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_OPCODES, 0);

View File

@ -194,10 +194,6 @@ int vocabulary_get_class_count(ResourceManager *resmgr);
*/
bool vocabulary_get_snames(ResourceManager *resmgr, bool isOldSci0, Common::StringList &selectorNames);
/* Look up a selector name in an array, return the index */
int vocabulary_lookup_sname(const Common::StringList &selectorNames, const char *sname);
/**
* Obtain the list of opcodes.
*/