userlibandfileserver/fileserver/sfat32/sl_fsy.cpp
changeset 33 0173bcd7697c
parent 15 4122176ea935
child 291 206a6eaaeb71
--- a/userlibandfileserver/fileserver/sfat32/sl_fsy.cpp	Wed Dec 23 11:43:31 2009 +0000
+++ b/userlibandfileserver/fileserver/sfat32/sl_fsy.cpp	Thu Jan 07 13:38:45 2010 +0200
@@ -109,50 +109,6 @@
 	}
 
 
-void CFatFileSystem::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const
-//
-// Return the drive info. iBatteryState are already set.
-//
-	{
-
-	if(!IsValidLocalDriveMapping(aDriveNumber))
-		return;
-
-    TLocalDriveCapsV2Buf localDriveCaps;
-	
-	TInt r = KErrNone;
-
-	// is the drive local?
-	if (!IsProxyDrive(aDriveNumber))
-		{
-		// if not valid local drive, use default values in localDriveCaps
-		// if valid local drive and not locked, use TBusLocalDrive::Caps() values
-		// if valid drive and locked, hard-code attributes
-		r = GetLocalDrive(aDriveNumber).Caps(localDriveCaps);
-		}
-	else  // this need to be made a bit nicer
-		{   
-		CExtProxyDrive* pD = GetProxyDrive(aDriveNumber);
-		if(pD)
-			r = pD->Caps(localDriveCaps);
-		else
-			r = KErrNotReady;	// What should the behaviour really be here?
-		}
-
-	if (r != KErrLocked )
-		{
-		anInfo.iMediaAtt=localDriveCaps().iMediaAtt;
-		}
-	else
-		{
-		anInfo.iMediaAtt = KMediaAttLocked | KMediaAttLockable | KMediaAttHasPassword;
-		}
-
-	anInfo.iType=localDriveCaps().iType;
-	anInfo.iDriveAtt=localDriveCaps().iDriveAtt;
-	}
-
-
 TBool CFatFileSystem::IsExtensionSupported() const
 //
 //