From d02daa44fa235f59bf181c1d7d383983b268a282 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 30 Jun 2012 19:16:55 +0000 Subject: [PATCH] Remove unused function remove_incorrect_objects --- similar/main/object.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/similar/main/object.c b/similar/main/object.c index 47dda7708..9636db79a 100644 --- a/similar/main/object.c +++ b/similar/main/object.c @@ -925,29 +925,6 @@ void johns_obj_unlink(int segnum, int objnum) if (obj->next != -1) Objects[obj->next].prev = obj->prev; } -void remove_incorrect_objects() -{ - int segnum, objnum, count; - - for (segnum=0; segnum <= Highest_segment_index; segnum++) { - count = 0; - for (objnum=Segments[segnum].objects;objnum!=-1;objnum=Objects[objnum].next) { - count++; - #ifndef NDEBUG - if ( count > MAX_OBJECTS ) { - Int3(); - } - #endif - if (Objects[objnum].segnum != segnum ) { - #ifndef NDEBUG - Int3(); - #endif - johns_obj_unlink(segnum,objnum); - } - } - } -} - void remove_all_objects_but( int segnum, int objnum ) { int i;