diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-15 21:57:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-15 21:57:08 -0400 |
commit | 84fb0a8dceda063d58b946cb891c3e21214c8f75 (patch) | |
tree | 1802e90cff0548e201397392c8aebd9f8f5f83dd /libs/canvas/line.cc | |
parent | fe344859073b00ff63b0fd0b68c26af6cd96aae3 (diff) |
remove all XML related API from canvas. it may have been useful during development, but it is just a distraction - we will NEVER be saving or restoring canvas state via XML or any kind of serialized state
Diffstat (limited to 'libs/canvas/line.cc')
-rw-r--r-- | libs/canvas/line.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/canvas/line.cc b/libs/canvas/line.cc index 6c3a62e5dc..b070a57574 100644 --- a/libs/canvas/line.cc +++ b/libs/canvas/line.cc @@ -113,36 +113,3 @@ Line::set_y1 (Coord y1) DEBUG_TRACE (PBD::DEBUG::CanvasItemsDirtied, "canvas item dirty: line change\n"); } - -XMLNode * -Line::get_state () const -{ - XMLNode* node = new XMLNode ("Line"); -#ifdef CANVAS_DEBUG - if (!name.empty ()) { - node->add_property ("name", name); - } -#endif - node->add_property ("x0", string_compose ("%1", _points[0].x)); - node->add_property ("y0", string_compose ("%1", _points[0].y)); - node->add_property ("x1", string_compose ("%1", _points[1].x)); - node->add_property ("y1", string_compose ("%1", _points[1].y)); - - add_item_state (node); - add_outline_state (node); - return node; -} - -void -Line::set_state (XMLNode const * node) -{ - _points[0].x = atof (node->property("x0")->value().c_str()); - _points[0].y = atof (node->property("y0")->value().c_str()); - _points[1].x = atof (node->property("x1")->value().c_str()); - _points[1].y = atof (node->property("y1")->value().c_str()); - - set_item_state (node); - set_outline_state (node); - - _bounding_box_dirty = true; -} |