From eb877b31ba65ba36b3c539eef977a2a25b0c3627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Dec 2013 01:06:12 +0100 Subject: [PATCH] SceneGraph: removed *Transformation::move(). The original purpose was to allow modifying of drawing order, but this doesn't affect that at all (the order is preserved in DrawableGroup), thus the functions are useless. --- src/SceneGraph/DualComplexTransformation.h | 11 ----------- src/SceneGraph/MatrixTransformation2D.h | 11 ----------- src/SceneGraph/RigidMatrixTransformation2D.h | 11 ----------- 3 files changed, 33 deletions(-) diff --git a/src/SceneGraph/DualComplexTransformation.h b/src/SceneGraph/DualComplexTransformation.h index 3edf7b8ef..1ec7c031d 100644 --- a/src/SceneGraph/DualComplexTransformation.h +++ b/src/SceneGraph/DualComplexTransformation.h @@ -117,17 +117,6 @@ template class BasicDualComplexTransformation: public AbstractBasicTran return transformInternal(Math::DualComplex::rotation(angle), type); } - /** - * @brief Move object in stacking order - * @param under Sibling object under which to move or `nullptr`, - * if you want to move it above all. - * @return Reference to self (for method chaining) - */ - Object>& move(Object>* under) { - static_cast*>(this)->Containers::template LinkedList>>::move(this, under); - return static_cast>&>(*this); - } - protected: /* Allow construction only from Object */ explicit BasicDualComplexTransformation() = default; diff --git a/src/SceneGraph/MatrixTransformation2D.h b/src/SceneGraph/MatrixTransformation2D.h index a2d0656b4..f29cc0854 100644 --- a/src/SceneGraph/MatrixTransformation2D.h +++ b/src/SceneGraph/MatrixTransformation2D.h @@ -117,17 +117,6 @@ template class BasicMatrixTransformation2D: public AbstractBasicTransla return transform(Math::Matrix3::reflection(normal), type); } - /** - * @brief Move object in stacking order - * @param under Sibling object under which to move or `nullptr`, - * if you want to move it above all. - * @return Reference to self (for method chaining) - */ - Object>& move(Object>* under) { - static_cast*>(this)->Containers::template LinkedList>>::move(this, under); - return static_cast>&>(*this); - } - protected: /* Allow construction only from Object */ explicit BasicMatrixTransformation2D() = default; diff --git a/src/SceneGraph/RigidMatrixTransformation2D.h b/src/SceneGraph/RigidMatrixTransformation2D.h index 388491b00..5612a00a8 100644 --- a/src/SceneGraph/RigidMatrixTransformation2D.h +++ b/src/SceneGraph/RigidMatrixTransformation2D.h @@ -134,17 +134,6 @@ template class BasicRigidMatrixTransformation2D: public AbstractBasicTr return transformInternal(Math::Matrix3::reflection(normal), type); } - /** - * @brief Move object in stacking order - * @param under Sibling object under which to move or `nullptr`, - * if you want to move it above all. - * @return Reference to self (for method chaining) - */ - Object>& move(Object>* under) { - static_cast*>(this)->Containers::template LinkedList>>::move(this, under); - return static_cast>&>(*this); - } - protected: /* Allow construction only from Object */ explicit BasicRigidMatrixTransformation2D() = default;