aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-28 21:05:42 +0000
committerFilippos Karapetis2010-01-28 21:05:42 +0000
commita83fca1430c15dcbe29a897fac55d9c48aa93eb1 (patch)
tree8c938193ea8e9670f08f3e1e927aa78fb30e1b5e /engines/sci/engine
parent347a97460913930d9a4e638b085bfbc5755e10e3 (diff)
downloadscummvm-rg350-a83fca1430c15dcbe29a897fac55d9c48aa93eb1.tar.gz
scummvm-rg350-a83fca1430c15dcbe29a897fac55d9c48aa93eb1.tar.bz2
scummvm-rg350-a83fca1430c15dcbe29a897fac55d9c48aa93eb1.zip
kDisposeList() is not needed according to waltervn, as the garbage collector automatically clears unused objects
svn-id: r47653
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/klists.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp
index 86ddc2a2d0..135f153298 100644
--- a/engines/sci/engine/klists.cpp
+++ b/engines/sci/engine/klists.cpp
@@ -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;
}