diff -r 3f7d9dbe57c8 -r 19fb38abab1d terminalsecurity/SCP/SCPHistoryPlugin/src/SCPHistoryPlugin.cpp --- a/terminalsecurity/SCP/SCPHistoryPlugin/src/SCPHistoryPlugin.cpp Tue Feb 02 00:44:00 2010 +0200 +++ b/terminalsecurity/SCP/SCPHistoryPlugin/src/SCPHistoryPlugin.cpp Fri Apr 16 15:52:47 2010 +0300 @@ -100,42 +100,6 @@ return NULL; // Eventhandler not available } - // Insert the default security code into the history-buffer if not there yet - { - TInt errSCF = SetConfigFile (); - if (errSCF != KErrNone) - { - return NULL; - } - - TInt historyItemCounter = 0; - if ( GetHistoryItemCount( historyItemCounter ) != KErrNone ) - { - Dprint ( ( _L( "CSCPHistoryPlugin::HandleEvent historyItemCounter = %d" ), historyItemCounter ) ); - // Hash the security code - TBuf codeBuf; - TBuf hashBuf; - - codeBuf.Copy( KSCPDefaultEnchSecCode ); - hashBuf.Zero(); - - iEventHandler->HashInput( codeBuf, hashBuf ); - - CSCPParamObject* historyObject = NULL; - TRAPD( err, historyObject = CSCPParamObject::NewL() ); - if ( err == KErrNone ) - { - historyObject->Set( KHistoryCounterParamID, 1 ); - historyObject->Set( KHistoryItemParamBase, hashBuf ); - - TRAP_IGNORE( historyObject->WriteToFileL( iCfgFilenamepath, iFs ) ); - } - - delete historyObject; - } - } - - // check for Case switch ( aID ) {