diff -r 051d34a3f367 -r 2c9d3aa5bea2 profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp --- a/profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp Mon Jan 18 20:31:08 2010 +0200 +++ b/profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp Thu Apr 01 03:17:51 2010 +0800 @@ -21,7 +21,6 @@ #include "CProfileImpl.h" #include #include -#include #include #include #include @@ -216,39 +215,7 @@ const TArray CProfileImpl::AlertForL() { TInt contactIdListCount( iAlertFor.Count() ); - if( contactIdListCount > 0 ) - { - // create CPbkContactEngine - CPbkContactEngine* contactEngine = CPbkContactEngine::NewL( &iFs ); - CleanupStack::PushL( contactEngine ); - CContactIdArray* groupIds = contactEngine->Database().GetGroupIdListL(); - if( !groupIds ) - { // There are no groups in Contacts db -> clear the alert for IDs: - iAlertFor.Reset(); - } - else - { - CleanupStack::PushL( groupIds ); - TInt err; - for( TInt i( 0 ) ; i < contactIdListCount ; ++i ) - { - err = groupIds->Find( iAlertFor[i] ); - - if( err == KErrNotFound ) - { - // remove this - iAlertFor.Remove( i ); - --contactIdListCount; - --i; - err = KErrNone; - } - User::LeaveIfError( err ); - } - CleanupStack::PopAndDestroy(); // groupIds - } - CleanupStack::PopAndDestroy(); // contactEngine - } return iAlertFor.Array(); }