--- a/harvesterplugins/media/mediautils/src/cpixindexerutils.cpp Wed Aug 18 09:49:49 2010 +0300
+++ b/harvesterplugins/media/mediautils/src/cpixindexerutils.cpp Thu Sep 02 20:27:46 2010 +0300
@@ -28,7 +28,6 @@
// local declarations and functions
namespace {
_LIT(KCPixSearchServerPrivateDirectory, "\\Private\\2001f6f7\\");
-_LIT(KIndexingDBPath,"indexing\\indexdb");
_LIT(KPathIndexDbPath, CPIX_INDEVICE_INDEXDB);
_LIT(KAtSign, "@");
@@ -277,8 +276,6 @@
}
if(IsDriveCanbeMountedL(aMedia))
{
- //clean the existing database if any
- RemoveUnmountedDatabaseL(aMedia,aPath);
// Form the baseappclass for this media
TBuf<KMsgPluginBaseAppClassMaxLen> baseAppClass;
FormBaseAppClass(TDriveNumber(aMedia), aBaseAppClassGeneric,baseAppClass);
@@ -470,30 +467,4 @@
return iMountedDrives;
}
-// -----------------------------------------------------------------------------
-// CCPixIndexerUtils::RemoveUnmountedDatabase()
-// -----------------------------------------------------------------------------
-//
-void CCPixIndexerUtils::RemoveUnmountedDatabaseL(TDriveNumber aMedia, const TDesC& aPath)
- {
- RFs aFs;
- User::LeaveIfError( aFs.Connect() );
- TChar drive;
- TInt err = aFs.DriveToChar((TDriveNumber)aMedia,drive);
- if ( err == KErrNone )
- {
- TBuf<KMaxFileName> folderpath;
- folderpath.Append(drive);
- folderpath.Append(KColon);
- folderpath.Append(KCPixSearchServerPrivateDirectory);
- folderpath.Append(KIndexingDBPath);
- folderpath.Append(aPath);
- CFileMan* FileMan = CFileMan::NewL(aFs);
- if ( FileMan )
- FileMan->Delete( folderpath );
- delete FileMan;
- }
- aFs.Close();
- }
-
//End of file