aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorD G Turner2012-07-05 11:40:02 +0100
committerD G Turner2012-07-05 11:40:02 +0100
commit3526f6760d298c91c25a5c6c366a2a0afe335f75 (patch)
tree2179a3993ade8f9331feba9c563fd5e65c0c2622 /engines/teenagent
parent15198688fe97f3bc7e1d528645b5d1f2d85baff7 (diff)
downloadscummvm-rg350-3526f6760d298c91c25a5c6c366a2a0afe335f75.tar.gz
scummvm-rg350-3526f6760d298c91c25a5c6c366a2a0afe335f75.tar.bz2
scummvm-rg350-3526f6760d298c91c25a5c6c366a2a0afe335f75.zip
TEENAGENT: Removed unused quad functions from Segment class.
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/segment.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/teenagent/segment.h b/engines/teenagent/segment.h
index 303198b071..286337d120 100644
--- a/engines/teenagent/segment.h
+++ b/engines/teenagent/segment.h
@@ -41,26 +41,21 @@ public:
assert(offset < _size);
return _data[offset];
}
+
inline uint16 get_word(uint32 offset) const {
assert(offset + 1 < _size);
return READ_LE_UINT16(_data + offset);
}
- inline uint32 get_quad(uint32 offset) const {
- assert(offset + 3 < _size);
- return READ_LE_UINT32(_data + offset);
- }
+
inline void set_byte(uint32 offset, byte v) const {
assert(offset < _size);
_data[offset] = v;
}
+
inline void set_word(uint32 offset, uint16 v) const {
assert(offset + 1 < _size);
return WRITE_LE_UINT16(_data + offset, v);
}
- inline void set_quad(uint32 offset, uint32 v) const {
- assert(offset + 3 < _size);
- return WRITE_LE_UINT32(_data + offset, v);
- }
const byte *ptr(uint32 addr) const {
assert(addr < _size);
@@ -71,6 +66,7 @@ public:
assert(addr < _size);
return _data + addr;
}
+
uint size() const { return _size; }
};