[vlc-commits] skins2: remove unneeded check

Erwan Tulou git at videolan.org
Fri Apr 5 19:16:01 CEST 2013


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Apr  5 13:39:33 2013 +0200| [f8d1501c6e8cfc1e027522e071cd7762c6b83534] | committer: Erwan Tulou

skins2: remove unneeded check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8d1501c6e8cfc1e027522e071cd7762c6b83534
---

 modules/gui/skins2/parser/builder.cpp |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/gui/skins2/parser/builder.cpp b/modules/gui/skins2/parser/builder.cpp
index e5b54a0..15e5490 100644
--- a/modules/gui/skins2/parser/builder.cpp
+++ b/modules/gui/skins2/parser/builder.cpp
@@ -863,10 +863,7 @@ void Builder::addSlider( const BuilderData::Slider &rData )
 
     // Get the bitmaps of the background
     GenericBitmap *pBgImage = NULL;
-    if( rData.m_imageId != "none" )
-    {
-        GET_BMP( pBgImage, rData.m_imageId );
-    }
+    GET_BMP( pBgImage, rData.m_imageId );
 
     GenericLayout *pLayout = m_pTheme->getLayoutById( rData.m_layoutId );
     if( pLayout == NULL )



More information about the vlc-commits mailing list