Index: move.c =================================================================== --- move.c (revision 4573) +++ move.c (revision 4574) @@ -53,6 +53,7 @@ #include "box.h" #include "obj_all_op.h" #include "obj_line.h" +#include "obj_pinvia.h" /* --------------------------------------------------------------------------- * some local prototypes @@ -59,7 +60,6 @@ */ static void *MoveElementName(pcb_opctx_t *ctx, ElementTypePtr); static void *MoveElement(pcb_opctx_t *ctx, ElementTypePtr); -static void *MoveVia(pcb_opctx_t *ctx, PinTypePtr); static void *MovePolygon(pcb_opctx_t *ctx, LayerTypePtr, PolygonTypePtr); static void *MovePolygonPoint(pcb_opctx_t *ctx, LayerTypePtr, PolygonTypePtr, PointTypePtr); static void *MoveRatToLayer(pcb_opctx_t *ctx, RatTypePtr); @@ -205,25 +205,6 @@ } /* --------------------------------------------------------------------------- - * moves a via - */ -static void *MoveVia(pcb_opctx_t *ctx, PinTypePtr Via) -{ - r_delete_entry(PCB->Data->via_tree, (BoxType *) Via); - RestoreToPolygon(PCB->Data, PCB_TYPE_VIA, Via, Via); - MOVE_VIA_LOWLEVEL(Via, ctx->move.dx, ctx->move.dy); - if (PCB->ViaOn) - EraseVia(Via); - r_insert_entry(PCB->Data->via_tree, (BoxType *) Via, 0); - ClearFromPolygon(PCB->Data, PCB_TYPE_VIA, Via, Via); - if (PCB->ViaOn) { - DrawVia(Via); - Draw(); - } - return (Via); -} - -/* --------------------------------------------------------------------------- * low level routine to move a polygon */ void MovePolygonLowLevel(PolygonTypePtr Polygon, Coord DX, Coord DY)