aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/toltecs/script.cpp24
-rw-r--r--engines/toltecs/script.h5
2 files changed, 0 insertions, 29 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];
diff --git a/engines/toltecs/script.h b/engines/toltecs/script.h
index eacd116d82..8f4ae80818 100644
--- a/engines/toltecs/script.h
+++ b/engines/toltecs/script.h
@@ -111,21 +111,16 @@ protected:
byte arg8(int16 offset);
int16 arg16(int16 offset);
- int32 arg32(int16 offset);
void pushByte(byte value);
byte popByte();
void pushInt16(int16 value);
int16 popInt16();
- void pushInt32(int32 value);
- int32 popInt32();
void localWrite8(int16 offset, byte value);
byte localRead8(int16 offset);
void localWrite16(int16 offset, int16 value);
int16 localRead16(int16 offset);
- void localWrite32(int16 offset, int32 value);
- int32 localRead32(int16 offset);
byte *localPtr(int16 offset);
};