diff options
author | Max Horn | 2009-10-08 20:07:00 +0000 |
---|---|---|
committer | Max Horn | 2009-10-08 20:07:00 +0000 |
commit | d56d072fb21fe201d533b4d92a698284549a0cbe (patch) | |
tree | 54a91190526d432a0b032e2fbe5bdd40cf8935ac /engines/sci | |
parent | a121c822ebbb502d39bf761f7c794fe446f3da87 (diff) | |
download | scummvm-rg350-d56d072fb21fe201d533b4d92a698284549a0cbe.tar.gz scummvm-rg350-d56d072fb21fe201d533b4d92a698284549a0cbe.tar.bz2 scummvm-rg350-d56d072fb21fe201d533b4d92a698284549a0cbe.zip |
SCI: Removed SegManager::getDescription
svn-id: r44795
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/seg_manager.cpp | 14 | ||||
-rw-r--r-- | engines/sci/engine/seg_manager.h | 7 |
2 files changed, 0 insertions, 21 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp index 234ad42eb2..d0756645dc 100644 --- a/engines/sci/engine/seg_manager.cpp +++ b/engines/sci/engine/seg_manager.cpp @@ -1271,20 +1271,6 @@ byte *SegManager::allocDynmem(int size, const char *descr, reg_t *addr) { return (byte *)(d._buf); } -const char *SegManager::getDescription(reg_t addr) { - if (addr.segment < 1 || addr.segment >= _heap.size()) - return ""; - - SegmentObj *mobj = _heap[addr.segment]; - - switch (mobj->getType()) { - case SEG_TYPE_DYNMEM: - return (*(DynMem *)mobj)._description.c_str(); - default: - return ""; - } -} - int SegManager::freeDynmem(reg_t addr) { if (addr.segment < 1 || addr.segment >= _heap.size() || !_heap[addr.segment] || _heap[addr.segment]->getType() != SEG_TYPE_DYNMEM) return 1; // error diff --git a/engines/sci/engine/seg_manager.h b/engines/sci/engine/seg_manager.h index 2b827400fd..7a3827f486 100644 --- a/engines/sci/engine/seg_manager.h +++ b/engines/sci/engine/seg_manager.h @@ -280,13 +280,6 @@ public: */ int freeDynmem(reg_t addr); - /** - * Gets the description of a dynmem segment - * @param[in] addr Segment to describe - * @return Pointer to the descriptive string set in allocDynmem - */ - const char *getDescription(reg_t addr); - // Generic Operations on Segments and Addresses |