From ccbba5e9266488ed161c9b8a57121c4bb3537d26 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 15 Dec 2015 20:52:23 +0100 Subject: [PATCH] LoadingScreen: remove indicateProgress, not used --- apps/openmw/mwgui/loadingscreen.cpp | 11 ----------- apps/openmw/mwgui/loadingscreen.hpp | 3 --- components/loadinglistener/loadinglistener.hpp | 3 --- 3 files changed, 17 deletions(-) diff --git a/apps/openmw/mwgui/loadingscreen.cpp b/apps/openmw/mwgui/loadingscreen.cpp index 321d5e664..56b4e75d0 100644 --- a/apps/openmw/mwgui/loadingscreen.cpp +++ b/apps/openmw/mwgui/loadingscreen.cpp @@ -224,17 +224,6 @@ namespace MWGui draw(); } - void LoadingScreen::indicateProgress() - { - float time = (static_cast(mTimer.time_m()) % 2001) / 1000.f; - if (time > 1) - time = (time-2)*-1; - - mProgressBar->setTrackSize(50); - mProgressBar->setScrollPosition(static_cast(time * (mProgressBar->getScrollRange() - 1))); - draw(); - } - bool LoadingScreen::needToDrawLoadingScreen() { if ( mTimer.time_m() <= mLastRenderTime + (1.0/mTargetFrameRate) * 1000.0) diff --git a/apps/openmw/mwgui/loadingscreen.hpp b/apps/openmw/mwgui/loadingscreen.hpp index f0f354223..d7a822ace 100644 --- a/apps/openmw/mwgui/loadingscreen.hpp +++ b/apps/openmw/mwgui/loadingscreen.hpp @@ -35,9 +35,6 @@ namespace MWGui virtual void setLabel (const std::string& label); - /// Indicate that some progress has been made, without specifying how much - virtual void indicateProgress (); - virtual void loadingOn(); virtual void loadingOff(); diff --git a/components/loadinglistener/loadinglistener.hpp b/components/loadinglistener/loadinglistener.hpp index 558111b34..e9a8cd3c7 100644 --- a/components/loadinglistener/loadinglistener.hpp +++ b/components/loadinglistener/loadinglistener.hpp @@ -12,9 +12,6 @@ namespace Loading virtual void loadingOn() {} virtual void loadingOff() {} - /// Indicate that some progress has been made, without specifying how much - virtual void indicateProgress () {} - virtual void setProgressRange (size_t range) {} virtual void setProgress (size_t value) {} virtual void increaseProgress (size_t increase = 1) {}