From a82684ec1a9d9fb526c18f64d63ff78a242ff096 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Tue, 23 Jul 2013 06:15:10 -0500 Subject: [PATCH] Remove GuiComponent::init, deinit, and getGlobalPosition. --- src/GuiComponent.cpp | 25 ------------------------- src/GuiComponent.h | 9 --------- 2 files changed, 34 deletions(-) diff --git a/src/GuiComponent.cpp b/src/GuiComponent.cpp index 2c1d0bc15..4eb5d69f5 100644 --- a/src/GuiComponent.cpp +++ b/src/GuiComponent.cpp @@ -52,31 +52,6 @@ void GuiComponent::renderChildren(const Eigen::Affine3f& transform) const } } -void GuiComponent::init() -{ - for(unsigned int i = 0; i < getChildCount(); i++) - { - getChild(i)->init(); - } -} - -void GuiComponent::deinit() -{ - for(unsigned int i = 0; i < getChildCount(); i++) - { - getChild(i)->deinit(); - } -} - -//Offset stuff. -Eigen::Vector3f GuiComponent::getGlobalPosition() -{ - if(mParent) - return mParent->getGlobalPosition() + mPosition; - else - return mPosition; -} - Eigen::Vector3f GuiComponent::getPosition() const { return mPosition; diff --git a/src/GuiComponent.h b/src/GuiComponent.h index d695b38c8..23c371ac8 100644 --- a/src/GuiComponent.h +++ b/src/GuiComponent.h @@ -27,15 +27,6 @@ public: //4. Tell your children to render, based on your component's transform - renderChildren(t). virtual void render(const Eigen::Affine3f& parentTrans); - //TO BE DEPRECATED - //Called when the Renderer initializes. Passes to children. - virtual void init(); - - //TO BE DEPRECATED - //Called when the Renderer deinitializes. Passes to children. - virtual void deinit(); - - virtual Eigen::Vector3f getGlobalPosition(); //to be deprecated Eigen::Vector3f getPosition() const; void setPosition(const Eigen::Vector3f& offset); void setPosition(float x, float y, float z = 0.0f);