Remove unused function remove_all_objects_but

This commit is contained in:
Kp 2012-06-30 19:16:55 +00:00
parent a39c44b6fd
commit 021fc26b77

View file

@ -913,19 +913,6 @@ void johns_obj_unlink(int segnum, int objnum)
if (obj->next != -1) Objects[obj->next].prev = obj->prev;
}
void remove_all_objects_but( int segnum, int objnum )
{
int i;
for (i=0; i<=Highest_segment_index; i++) {
if (segnum != i ) {
if (is_object_in_seg( i, objnum )) {
johns_obj_unlink( i, objnum );
}
}
}
}
#endif
//link the object into the list for its segment