Consolidate duplicate function
This commit is contained in:
@@ -49,16 +49,6 @@
|
||||
|
||||
RageTextureManager* TEXTUREMAN = NULL;
|
||||
|
||||
static CString GetExtension(const CString &fn)
|
||||
{
|
||||
CString sDir, sFName, sExt;
|
||||
splitpath( fn, sDir, sFName, sExt );
|
||||
sExt.MakeLower();
|
||||
|
||||
return sExt;
|
||||
}
|
||||
|
||||
|
||||
RageTextureManager::RageTextureManager()
|
||||
{
|
||||
m_iNoWarnAboutOddDimensions = 0;
|
||||
|
||||
@@ -178,6 +178,7 @@ inline CString GetExtension( CString sPath )
|
||||
{
|
||||
CString Dir, FName, Ext;
|
||||
splitrelpath( sPath, Dir, FName, Ext );
|
||||
Ext.MakeLower();
|
||||
return Ext;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user