From: cilix42 Date: Tue, 29 Jul 2008 14:52:20 +0000 (+0000) Subject: Remove obsolete function param_editOncanvas for PointParams X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4110fdb6c15b05fd15d2dc8f867cbd91e9a384a0;p=inkscape.git Remove obsolete function param_editOncanvas for PointParams --- diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index 0a782d4ec..8b47b887f 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -118,25 +118,6 @@ PointParam::param_set_and_write_new_value (Geom::Point newpoint) g_free(str); } -void -PointParam::param_editOncanvas(SPItem * item, SPDesktop * dt) -{ - // If not already in nodecontext, goto it! - if (!tools_isactive(dt, TOOLS_NODES)) { - tools_switch_current(TOOLS_NODES); - } - - PointParamKnotHolder * kh = new PointParamKnotHolder(dt, SP_OBJECT(param_effect->getLPEObj()), param_key.c_str(), item); - if (kh) { - kh->add_knot(* dynamic_cast( this ), NULL, knot_shape, knot_mode, knot_color, param_getTooltip()->c_str() ); - - ShapeEditor * shape_editor = SP_NODE_CONTEXT( dt->event_context )->shape_editor; - shape_editor->set_knotholder(kh); - } -} - - - void PointParam::param_transform_multiply(Geom::Matrix const& postmul, bool /*set*/) { diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index 9718b232b..ca440c1fc 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -45,9 +45,6 @@ public: void param_set_and_write_new_value(Geom::Point newpoint); - // TODO: ditch this - virtual void param_editOncanvas(SPItem * item, SPDesktop * dt); - virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/); void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);