From d98b95d63cc31829af15129740dbabd1e5eb925b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 19 Oct 2002 19:21:21 +0000 Subject: [PATCH] Remove unnecessary cast. --- stepmania/src/RageTextureManager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageTextureManager.cpp b/stepmania/src/RageTextureManager.cpp index 888ba3262f..13481eddc6 100644 --- a/stepmania/src/RageTextureManager.cpp +++ b/stepmania/src/RageTextureManager.cpp @@ -81,14 +81,12 @@ RageTexture* RageTextureManager::LoadTexture( CString sTexturePath, bool bForceR splitpath( false, sTexturePath, sDrive, sDir, sFName, sExt ); if( sExt == "avi" || sExt == "mpg" || sExt == "mpeg" ) - pTexture = (RageTexture*) new RageMovieTexture( m_pScreen, sTexturePath, m_iMaxTextureSize, m_iTextureColorDepth, iMipMaps, iAlphaBits, bDither, bStretch ); + pTexture = new RageMovieTexture( m_pScreen, sTexturePath, m_iMaxTextureSize, m_iTextureColorDepth, iMipMaps, iAlphaBits, bDither, bStretch ); else - pTexture = (RageTexture*) new RageBitmapTexture( m_pScreen, sTexturePath, m_iMaxTextureSize, m_iTextureColorDepth, iMipMaps, iAlphaBits, bDither, bStretch ); - + pTexture = new RageBitmapTexture( m_pScreen, sTexturePath, m_iMaxTextureSize, m_iTextureColorDepth, iMipMaps, iAlphaBits, bDither, bStretch ); LOG->Trace( "RageTextureManager: Finished loading '%s'.", sTexturePath ); - m_mapPathToTexture[sTexturePath] = pTexture; }