TOLTECS: Removed unused functions.

This commit is contained in:
Benjamin Haisch 2008-09-23 10:57:39 +00:00 committed by Willem Jan Palenstijn
parent beab4e3ca5
commit f77960e81b
2 changed files with 0 additions and 29 deletions
engines/toltecs

View File

@ -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];

View File

@ -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);
};