Fix a m_camera not used warning fix pointed by clang 4154/head
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 22 May 2016 11:31:41 +0000 (13:31 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 22 May 2016 11:31:41 +0000 (13:31 +0200)
src/content_cao.cpp
src/content_cao.h

index d701e4f725d66c04d127ece4754024bf90d1315a..35ab1c508e29dcc5a78f004d1e64078b6f515739 100644 (file)
@@ -546,7 +546,6 @@ GenericCAO::GenericCAO(IGameDef *gamedef, ClientEnvironment *env):
                //
                m_smgr(NULL),
                m_irr(NULL),
-               m_camera(NULL),
                m_gamedef(NULL),
                m_selection_box(-BS/3.,-BS/3.,-BS/3., BS/3.,BS/3.,BS/3.),
                m_meshnode(NULL),
@@ -804,7 +803,7 @@ void GenericCAO::removeFromScene(bool permanent)
        }
 }
 
-void GenericCAO::addToScene(scene::ISceneManager *smgr, 
+void GenericCAO::addToScene(scene::ISceneManager *smgr,
                ITextureSource *tsrc, IrrlichtDevice *irr)
 {
        m_smgr = smgr;
index a166ff4943d34bad84bc9214ead733ea48e3d489..bf99fd3bafd0b323cbdb71d41918cb4ca92772f9 100644 (file)
@@ -68,7 +68,6 @@ private:
        //
        scene::ISceneManager *m_smgr;
        IrrlichtDevice *m_irr;
-       Camera* m_camera;
        IGameDef *m_gamedef;
        aabb3f m_selection_box;
        scene::IMeshSceneNode *m_meshnode;
@@ -206,7 +205,7 @@ public:
                        float time_from_last_punch=1000000);
 
        std::string debugInfoText();
-       
+
        std::string infoText()
        {
                return m_prop.infotext;