mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
SCI: Removed SegManager::getDescription
svn-id: r44795
This commit is contained in:
parent
a121c822eb
commit
d56d072fb2
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user