Code

Remove obsolete function param_editOncanvas for PointParams
authorcilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:52:20 +0000 (14:52 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:52:20 +0000 (14:52 +0000)
src/live_effects/parameter/point.cpp
src/live_effects/parameter/point.h

index 0a782d4ecf44eccd5a2484a62f8d13e90232a892..8b47b887f5f06c3bcef8717a0b4849dc4ded8eb5 100644 (file)
@@ -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<Geom::Point *>( 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*/)
 {
index 9718b232b288ce3ddf00a4b0f56005756dc89fa0..ca440c1fce1f8a3772d6b77af914c17ce3e5a2bb 100644 (file)
@@ -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);