From 678c5c8cf6c2da146549d82eadf5234872c420e5 Mon Sep 17 00:00:00 2001 From: jmarshallnz Date: Sat, 7 Aug 2010 08:15:08 +0000 Subject: cleanup: get rid of unused , parameters to the progress control git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32569 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- guilib/GUIProgressControl.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'guilib/GUIProgressControl.cpp') diff --git a/guilib/GUIProgressControl.cpp b/guilib/GUIProgressControl.cpp index 98f57fff79..836b3e8aa3 100644 --- a/guilib/GUIProgressControl.cpp +++ b/guilib/GUIProgressControl.cpp @@ -28,7 +28,7 @@ CGUIProgressControl::CGUIProgressControl(int parentID, int controlID, const CTextureInfo& leftTexture, const CTextureInfo& midTexture, const CTextureInfo& rightTexture, - const CTextureInfo& overlayTexture, float min, float max, + const CTextureInfo& overlayTexture, bool reveal) : CGUIControl(parentID, controlID, posX, posY, width, height) , m_guiBackground(posX, posY, width, height, backGroundTexture) @@ -37,8 +37,6 @@ CGUIProgressControl::CGUIProgressControl(int parentID, int controlID, , m_guiRight(posX, posY, width, height, rightTexture) , m_guiOverlay(posX, posY, width, height, overlayTexture) { - m_RangeMin = min; - m_RangeMax = max; m_fPercent = 0; m_iInfoCode = 0; ControlType = GUICONTROL_PROGRESS; @@ -60,18 +58,8 @@ void CGUIProgressControl::Render() { if (!IsDisabled()) { - if (m_iInfoCode ) - { + if (m_iInfoCode) m_fPercent = (float)g_infoManager.GetInt(m_iInfoCode); - if ((m_RangeMax - m_RangeMin)> 0 && (m_RangeMax != 100 && m_RangeMin != 0) ) - { - if (m_fPercent > m_RangeMax) - m_fPercent = m_RangeMax; - if (m_fPercent < m_RangeMin) - m_fPercent = m_RangeMin; - m_fPercent = ((100*(m_fPercent - m_RangeMin)) / (m_RangeMax - m_RangeMin)); - } - } if (m_fPercent < 0.0f) m_fPercent = 0.0f; if (m_fPercent > 100.0f) m_fPercent = 100.0f; -- cgit v1.2.3