SCI: Removed SegManager::getDescription

svn-id: r44795
This commit is contained in:
Max Horn 2009-10-08 20:07:00 +00:00
parent a121c822eb
commit d56d072fb2
2 changed files with 0 additions and 21 deletions

View File

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

View File

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