--- a/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp Tue Feb 02 00:23:10 2010 +0200
+++ b/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp Fri Mar 19 09:35:23 2010 +0200
@@ -70,13 +70,13 @@
//
CCPServerSession::~CCPServerSession()
{
- //remove notification handler from an array of sessions in data manager
- if ( iNotificationHandler && iDataManager )
- {
- iDataManager->RemoveObserver( iNotificationHandler );
- }
if ( isRegister && iNotificationHandler )
{
+ //remove notification handler from an array of sessions in data manager
+ if ( iDataManager )
+ {
+ iDataManager->RemoveObserver( iNotificationHandler );
+ }
iNotificationHandler->ErrorComplete( KErrCancel );
}
if ( iServer )
@@ -153,9 +153,6 @@
case ECpServerAddData:
AddDataL( aMessage );
break;
- case ECpServerAddDataNonPersistent:
- AddDataNonPersistentL( aMessage );
- break;
case ECpServerGetListSize:
GetListSizeL( aMessage );
break;
@@ -214,22 +211,7 @@
}
CleanupStack::PopAndDestroy( map );
}
-
-// -----------------------------------------------------------------------------
-// CCPServerSession::AddDataNonPersistentL
-// --------------- --------------------------------------------------------------
-//
-void CCPServerSession::AddDataNonPersistentL( const RMessage2& aMessage )
- {
- CP_DEBUG( _L8("CCPServerSession::AddDataL()" ) );
- CCPLiwMap* map = UnpackFromClientLC( aMessage );
- map->SetSecurityL( aMessage );
- TUint id( 0 );
- TPckg<TUint> idData(id);
- iDataManager->AddNonPersistentDataL( map );
- aMessage.WriteL( KReturnPosition, idData );
- CleanupStack::PopAndDestroy( map );
- }
+
// -----------------------------------------------------------------------------
// CCPServerSession::GetListL
// --------------- --------------------------------------------------------------