mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
kDisposeList() is not needed according to waltervn, as the garbage collector automatically clears unused objects
svn-id: r47653
This commit is contained in:
parent
347a974609
commit
a83fca1430
@ -123,6 +123,10 @@ reg_t kNewList(EngineState *s, int argc, reg_t *argv) {
|
||||
}
|
||||
|
||||
reg_t kDisposeList(EngineState *s, int argc, reg_t *argv) {
|
||||
// This function is not needed in ScummVM. The garbage collector
|
||||
// cleans up unused objects automatically
|
||||
|
||||
#if 0
|
||||
List *l = s->_segMan->lookupList(argv[0]);
|
||||
|
||||
if (!l) {
|
||||
@ -141,16 +145,11 @@ reg_t kDisposeList(EngineState *s, int argc, reg_t *argv) {
|
||||
n_addr = n->succ;
|
||||
|
||||
//s->_segMan->free_Node(n_addr); // TODO
|
||||
|
||||
// Clear the node
|
||||
n->key = NULL_REG;
|
||||
n->pred = NULL_REG;
|
||||
n->succ = NULL_REG;
|
||||
n->value = NULL_REG;
|
||||
}
|
||||
}
|
||||
|
||||
//s->_segMan->free_list(argv[0]); // TODO
|
||||
#endif
|
||||
|
||||
return s->r_acc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user