summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-06 13:23:32 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-06 13:23:32 +0000
commit5ab4cc03ae76fcb7f750598b1e5897e17a74cc7b (patch)
tree780d7b223d5bb845f5a39a141c970102887c3ea8 /src/pen-context.cpp
parentNew mode in pen tool to draw paraxial lines (diff)
downloadinkscape-5ab4cc03ae76fcb7f750598b1e5897e17a74cc7b.tar.gz
inkscape-5ab4cc03ae76fcb7f750598b1e5897e17a74cc7b.zip
cleanup (remove obsolete code)
(bzr r6576)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index aeddc5ce1..69c486123 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -292,26 +292,6 @@ sp_pen_context_set(SPEventContext *ec, gchar const *key, gchar const *val)
static void
spdc_endpoint_snap(SPPenContext const *const pc, NR::Point &p, guint const state)
{
- /*** old code: ***/
- /***
- if (pc->polylines_paraxial) {
- pen_set_to_nearest_horiz_vert(pc, p, state);
- // TODO: another (constrained) snap required?
- } else {
- if ((state & GDK_CONTROL_MASK)) { //CTRL enables angular snapping
- if (pc->npoints > 0) {
- spdc_endpoint_snap_rotation(pc, p, pc->p[0], state);
- }
- } else {
- if (!(state & GDK_SHIFT_MASK)) { //SHIFT disables all snapping, except the angular snapping above
- //After all, the user explicitely asked for angular snapping by
- //pressing CTRL
- spdc_endpoint_snap_free(pc, p, state);
- }
- }
- }
- **/
-
if ((state & GDK_CONTROL_MASK)) { //CTRL enables angular snapping
if (pc->npoints > 0) {
spdc_endpoint_snap_rotation(pc, p, pc->p[0], state);