summaryrefslogtreecommitdiff
path: root/libs/canvas/rectangle.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-15 21:57:08 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-15 21:57:08 -0400
commit84fb0a8dceda063d58b946cb891c3e21214c8f75 (patch)
tree1802e90cff0548e201397392c8aebd9f8f5f83dd /libs/canvas/rectangle.cc
parentfe344859073b00ff63b0fd0b68c26af6cd96aae3 (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/rectangle.cc')
-rw-r--r--libs/canvas/rectangle.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc
index 9395cc774d..249106de33 100644
--- a/libs/canvas/rectangle.cc
+++ b/libs/canvas/rectangle.cc
@@ -194,39 +194,3 @@ Rectangle::set_outline_what (int what)
set_outline_what ((What) what);
}
-XMLNode *
-Rectangle::get_state () const
-{
- XMLNode* node = new XMLNode ("Rectangle");
-#ifdef CANVAS_DEBUG
- if (!name.empty ()) {
- node->add_property ("name", name);
- }
-#endif
- node->add_property ("x0", string_compose ("%1", _rect.x0));
- node->add_property ("y0", string_compose ("%1", _rect.y0));
- node->add_property ("x1", string_compose ("%1", _rect.x1));
- node->add_property ("y1", string_compose ("%1", _rect.y1));
- node->add_property ("outline-what", string_compose ("%1", _outline_what));
-
- add_item_state (node);
- add_outline_state (node);
- add_fill_state (node);
- return node;
-}
-
-void
-Rectangle::set_state (XMLNode const * node)
-{
- _rect.x0 = atof (node->property("x0")->value().c_str());
- _rect.y0 = atof (node->property("y0")->value().c_str());
- _rect.x1 = atof (node->property("x1")->value().c_str());
- _rect.y1 = atof (node->property("y1")->value().c_str());
- _outline_what = (What) atoi (node->property("outline-what")->value().c_str());
-
- set_item_state (node);
- set_outline_state (node);
- set_fill_state (node);
-
- _bounding_box_dirty = true;
-}