Index: trunk/src_plugins/lib_compat_help/pstk_help.c =================================================================== --- trunk/src_plugins/lib_compat_help/pstk_help.c (revision 21830) +++ trunk/src_plugins/lib_compat_help/pstk_help.c (revision 21831) @@ -34,10 +34,6 @@ #include "find.h" -TODO(": remove this once the operations are free of ptrs") -extern unsigned long pcb_obj_type2oldtype(pcb_objtype_t type); - - pcb_pstk_t *pcb_pstk_new_hole(pcb_data_t *data, pcb_coord_t x, pcb_coord_t y, pcb_coord_t drill_dia, pcb_bool plated) { pcb_pstk_proto_t proto; @@ -109,7 +105,7 @@ for(i = 0; i < objs->used; i++) { if (objs->array[i] == o) { vtp0_remove(objs, i, 1); - pcb_destroy_object(data, pcb_obj_type2oldtype(o->type), o->parent.any, o, o); + pcb_destroy_object(data, o->type, o->parent.any, o, o); break; } }