From 30ab15e6054179efd09dad1c06b46eed26addb43 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 4 Jun 2015 20:33:20 +0200 Subject: [PATCH] Fix -Wunused-private-field clang warnings --- apps/openmw/mwgui/inventorywindow.cpp | 2 -- apps/openmw/mwgui/inventorywindow.hpp | 3 --- apps/openmw/mwgui/messagebox.cpp | 1 - apps/openmw/mwgui/messagebox.hpp | 1 - apps/openmw/mwrender/animation.cpp | 2 +- apps/openmw/mwrender/animation.hpp | 4 ---- apps/openmw/mwrender/npcanimation.cpp | 1 - apps/openmw/mwrender/npcanimation.hpp | 2 -- 8 files changed, 1 insertion(+), 15 deletions(-) diff --git a/apps/openmw/mwgui/inventorywindow.cpp b/apps/openmw/mwgui/inventorywindow.cpp index e3d87de60..3ecfc64b2 100644 --- a/apps/openmw/mwgui/inventorywindow.cpp +++ b/apps/openmw/mwgui/inventorywindow.cpp @@ -61,8 +61,6 @@ namespace MWGui , mGuiMode(GM_Inventory) , mLastXSize(0) , mLastYSize(0) - , mResourceSystem(resourceSystem) - , mViewer(viewer) , mPreview(new MWRender::InventoryPreview(viewer, resourceSystem, MWBase::Environment::get().getWorld()->getPlayerPtr())) , mTrading(false) { diff --git a/apps/openmw/mwgui/inventorywindow.hpp b/apps/openmw/mwgui/inventorywindow.hpp index fc579ae62..a8a1b15a1 100644 --- a/apps/openmw/mwgui/inventorywindow.hpp +++ b/apps/openmw/mwgui/inventorywindow.hpp @@ -99,9 +99,6 @@ namespace MWGui int mLastXSize; int mLastYSize; - Resource::ResourceSystem* mResourceSystem; - osgViewer::Viewer* mViewer; - std::auto_ptr mPreviewTexture; std::auto_ptr mPreview; diff --git a/apps/openmw/mwgui/messagebox.cpp b/apps/openmw/mwgui/messagebox.cpp index 6e81ed626..c647ecaf5 100644 --- a/apps/openmw/mwgui/messagebox.cpp +++ b/apps/openmw/mwgui/messagebox.cpp @@ -195,7 +195,6 @@ namespace MWGui InteractiveMessageBox::InteractiveMessageBox(MessageBoxManager& parMessageBoxManager, const std::string& message, const std::vector& buttons) : WindowModal("openmw_interactive_messagebox.layout") , mMessageBoxManager(parMessageBoxManager) - , mTextButtonPadding(0) , mButtonPressed(-1) { WindowModal::open(); diff --git a/apps/openmw/mwgui/messagebox.hpp b/apps/openmw/mwgui/messagebox.hpp index 59d1a0b06..b4121fed3 100644 --- a/apps/openmw/mwgui/messagebox.hpp +++ b/apps/openmw/mwgui/messagebox.hpp @@ -88,7 +88,6 @@ namespace MWGui MyGUI::Widget* mButtonsWidget; std::vector mButtons; - int mTextButtonPadding; int mButtonPressed; }; diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 34a397f9a..80877e08b 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -240,7 +240,7 @@ namespace MWRender , mTextKeyListener(NULL) { for(size_t i = 0;i < sNumGroups;i++) - mAnimationTimePtr[i].reset(new AnimationTime(this)); + mAnimationTimePtr[i].reset(new AnimationTime); } Animation::~Animation() diff --git a/apps/openmw/mwrender/animation.hpp b/apps/openmw/mwrender/animation.hpp index bd864c936..419ae6bc0 100644 --- a/apps/openmw/mwrender/animation.hpp +++ b/apps/openmw/mwrender/animation.hpp @@ -95,13 +95,9 @@ protected: class AnimationTime : public SceneUtil::ControllerSource { private: - Animation *mAnimation; boost::shared_ptr mTimePtr; public: - AnimationTime(Animation *anim) - : mAnimation(anim) - { } void setTimePtr(boost::shared_ptr time) { mTimePtr = time; } diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index 71c48a489..6831daa4b 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -242,7 +242,6 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, osg::ref_ptr par mShowWeapons(false), mShowCarriedLeft(true), mNpcType(Type_Normal), - mVisibilityFlags(visibilityFlags), mAlpha(1.f), mSoundsDisabled(disableSounds), mHeadYawRadians(0.f), diff --git a/apps/openmw/mwrender/npcanimation.hpp b/apps/openmw/mwrender/npcanimation.hpp index 23b663565..3eb4c4754 100644 --- a/apps/openmw/mwrender/npcanimation.hpp +++ b/apps/openmw/mwrender/npcanimation.hpp @@ -90,8 +90,6 @@ private: }; NpcType mNpcType; - int mVisibilityFlags; - int mPartslots[ESM::PRT_Count]; //Each part slot is taken by clothing, armor, or is empty int mPartPriorities[ESM::PRT_Count];