Index: obj_subc_parent.h =================================================================== --- obj_subc_parent.h (revision 15851) +++ obj_subc_parent.h (revision 15852) @@ -66,7 +66,6 @@ PCB_INLINE pcb_subc_t *pcb_obj_parent_subc(pcb_any_obj_t *obj) { switch(obj->type) { - case PCB_OBJ_VIA: case PCB_OBJ_PSTK: case PCB_OBJ_SUBC: return pcb_gobj_parent_subc(obj->parent_type, &obj->parent); @@ -81,15 +80,6 @@ case PCB_OBJ_RATLINE: /* easy case: can not be in a subc at all */ return 0; - - case PCB_OBJ_PIN: - case PCB_OBJ_PAD: - case PCB_OBJ_ELEMENT_NAME: - case PCB_OBJ_ELEMENT: - case PCB_OBJ_ELEMENT_LINE: - case PCB_OBJ_ELEMENT_ARC: - /* easy case: these obsolete constructs can not be in a subc at all */ - return 0; #endif default: