summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f81b968)
raw | patch | inline | side by side (parent: f81b968)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 22 Feb 2009 06:53:21 +0000 (06:53 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 22 Feb 2009 06:53:21 +0000 (06:53 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 7ff3de9e1de7c7a8900940a2210833890ffc76d2..c8dae0bdd687dc1e8c4f7c3c4a452b9f37e48c03 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
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++