mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-03 07:21:54 +00:00
Fix unused code
This commit is contained in:
parent
bc5942d189
commit
c8a5d2ec68
1 changed files with 2 additions and 4 deletions
|
|
@ -161,8 +161,7 @@ void clear_object_lists(struct ObjectNode *objLists) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function looks broken, but it appears to attempt to delete the leaf
|
* Delete the leaf graph nodes under obj and obj's siblings.
|
||||||
* graph nodes under obj and obj's siblings.
|
|
||||||
*/
|
*/
|
||||||
static void unused_delete_leaf_nodes(struct Object *obj) {
|
static void unused_delete_leaf_nodes(struct Object *obj) {
|
||||||
struct Object *children;
|
struct Object *children;
|
||||||
|
|
@ -176,8 +175,7 @@ static void unused_delete_leaf_nodes(struct Object *obj) {
|
||||||
mark_obj_for_deletion(obj);
|
mark_obj_for_deletion(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Probably meant to be !=
|
while ((sibling = (struct Object *) obj->header.gfx.node.next) != obj0) {
|
||||||
while ((sibling = (struct Object *) obj->header.gfx.node.next) == obj0) {
|
|
||||||
unused_delete_leaf_nodes(sibling);
|
unused_delete_leaf_nodes(sibling);
|
||||||
obj = (struct Object *) sibling->header.gfx.node.next;
|
obj = (struct Object *) sibling->header.gfx.node.next;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue