summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-24 00:37:00 +0000
committerJabiertxof <jtx@jtx>2017-01-24 00:37:00 +0000
commitba053c48cdcd8b4995f188d80887d46c41f97b3d (patch)
tree7095f1fb83aa1bf9ee14d633f73a35374136d88b /src/sp-object.cpp
parentUpdate to trunk (diff)
downloadinkscape-ba053c48cdcd8b4995f188d80887d46c41f97b3d.tar.gz
inkscape-ba053c48cdcd8b4995f188d80887d46c41f97b3d.zip
Remove some code and make dependant of rotate copies
(bzr r15356.1.17)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 0dc301c49..75f4657ef 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -775,21 +775,6 @@ void SPObject::appendChild(Inkscape::XML::Node *child) {
repr->appendChild(child);
}
-SPObject* SPObject::nthChild(unsigned index) {
- g_assert(this->repr);
- if (hasChildren()) {
- std::vector<SPObject*> l;
- unsigned counter = 0;
- for (auto& child: children) {
- if (counter == index) {
- return &child;
- }
- counter++;
- }
- }
- return NULL;
-}
-
void SPObject::addChild(Inkscape::XML::Node *child, Inkscape::XML::Node * prev)
{
g_assert(this->repr);