diff options
author | Benjamin Haisch | 2008-09-23 10:57:39 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:07 +0100 |
commit | f77960e81b5f0b17ebddd4b640cc315bcfc6ef78 (patch) | |
tree | 5ea1b17995703c0b35357a815649f52f6d7c0c53 /engines/toltecs/script.cpp | |
parent | beab4e3ca537f93d560640093e2f56c3120bceb4 (diff) | |
download | scummvm-rg350-f77960e81b5f0b17ebddd4b640cc315bcfc6ef78.tar.gz scummvm-rg350-f77960e81b5f0b17ebddd4b640cc315bcfc6ef78.tar.bz2 scummvm-rg350-f77960e81b5f0b17ebddd4b640cc315bcfc6ef78.zip |
TOLTECS: Removed unused functions.
Diffstat (limited to 'engines/toltecs/script.cpp')
-rw-r--r-- | engines/toltecs/script.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/engines/toltecs/script.cpp b/engines/toltecs/script.cpp index 6f155b2b5b..13cc0ea5e0 100644 --- a/engines/toltecs/script.cpp +++ b/engines/toltecs/script.cpp @@ -1147,10 +1147,6 @@ int16 ScriptInterpreter::arg16(int16 offset) { return READ_LE_UINT16(&_subCode[offset]); } -int32 ScriptInterpreter::arg32(int16 offset) { - return READ_LE_UINT32(&_subCode[offset]); -} - void ScriptInterpreter::pushByte(byte value) { _stack[_regs.sp] = value; _regs.sp--; @@ -1171,16 +1167,6 @@ int16 ScriptInterpreter::popInt16() { return READ_LE_UINT16(_stack + _regs.sp); } -void ScriptInterpreter::pushInt32(int32 value) { - WRITE_LE_UINT32(_stack + _regs.sp, value); - _regs.sp -= 4; -} - -int32 ScriptInterpreter::popInt32() { - _regs.sp += 4; - return READ_LE_UINT32(_stack + _regs.sp); -} - void ScriptInterpreter::localWrite8(int16 offset, byte value) { debug(1, "localWrite8(%d, %d)", offset, value); _localData[offset] = value; @@ -1201,16 +1187,6 @@ int16 ScriptInterpreter::localRead16(int16 offset) { return (int16)READ_LE_UINT16(&_localData[offset]); } -void ScriptInterpreter::localWrite32(int16 offset, int32 value) { - debug(1, "localWrite32(%d, %d)", offset, value); - WRITE_LE_UINT32(&_localData[offset], value); -} - -int32 ScriptInterpreter::localRead32(int16 offset) { - debug(1, "localRead32(%d) -> %d", offset, (int32)READ_LE_UINT32(&_localData[offset])); - return (int32)READ_LE_UINT32(&_localData[offset]); -} - byte *ScriptInterpreter::localPtr(int16 offset) { debug(1, "localPtr(%d)", offset); return &_localData[offset]; |