remove unused RageFileManager::MountpointIsReady. ("Ready"
checks are done through MemoryCardManager.)
This commit is contained in:
@@ -555,25 +555,6 @@ bool RageFileManager::IsMounted( CString MountPoint )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return true if the driver with the given root path is ready (eg. CD or memory card
|
|
||||||
* inserted). */
|
|
||||||
bool RageFileManager::MountpointIsReady( CString MountPoint )
|
|
||||||
{
|
|
||||||
vector<LoadedDriver> aDriverList;
|
|
||||||
ReferenceAllDrivers( aDriverList );
|
|
||||||
|
|
||||||
for( unsigned i = 0; i < aDriverList.size(); ++i )
|
|
||||||
{
|
|
||||||
if( aDriverList[i].MountPoint.CompareNoCase( MountPoint ) )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
return aDriverList[i].driver->Ready();
|
|
||||||
}
|
|
||||||
|
|
||||||
UnreferenceAllDrivers( aDriverList );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RageFileManager::GetLoadedDrivers( vector<DriverLocation> &Mounts )
|
void RageFileManager::GetLoadedDrivers( vector<DriverLocation> &Mounts )
|
||||||
{
|
{
|
||||||
LockMut( *g_Mutex );
|
LockMut( *g_Mutex );
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ public:
|
|||||||
* the driver. */
|
* the driver. */
|
||||||
static void Remount( CString sMountpoint, CString sPath );
|
static void Remount( CString sMountpoint, CString sPath );
|
||||||
bool IsMounted( CString MountPoint );
|
bool IsMounted( CString MountPoint );
|
||||||
bool MountpointIsReady( CString MountPoint );
|
|
||||||
struct DriverLocation
|
struct DriverLocation
|
||||||
{
|
{
|
||||||
CString Type, Root, MountPoint;
|
CString Type, Root, MountPoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user