From dc56487b6443e2d29a0c008ab55a75ca58ba3d37 Mon Sep 17 00:00:00 2001 From: joncruz Date: Sun, 22 Feb 2009 06:53:21 +0000 Subject: [PATCH] Removed broken-and-unused function --- src/pen-context.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 7ff3de9e1..c8dae0bdd 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -77,7 +77,6 @@ static SPDrawContextClass *pen_parent_class; static int pen_next_paraxial_direction(const SPPenContext *const pc, Geom::Point const &pt, Geom::Point const &origin, guint state); static void pen_set_to_nearest_horiz_vert(const SPPenContext *const pc, Geom::Point &pt, guint const state); -static Geom::Point pen_get_intermediate_horiz_vert(const SPPenContext *const pc, Geom::Point const &pt, guint const state); static int pen_last_paraxial_dir = 0; // last used direction in horizontal/vertical mode; 0 = horizontal, 1 = vertical @@ -1450,17 +1449,6 @@ void pen_set_to_nearest_horiz_vert(const SPPenContext *const pc, Geom::Point &pt } } -Geom::Point pen_get_intermediate_horiz_vert(const SPPenContext *const pc, Geom::Point const &pt) -{ - Geom::Point const &origin = pc->p[0]; - - if (pen_last_paraxial_dir == 0) { - return Geom::Point (origin[Geom::X], pt[Geom::Y]); - } else { - return Geom::Point (pt[Geom::X], origin[Geom::Y]); - } -} - /* Local Variables: mode:c++ -- 2.30.2