diff -r 84c6623982f6 -r ed07dcc72692 apengine/apeng/src/ApListItemKey.cpp --- a/apengine/apeng/src/ApListItemKey.cpp Fri Sep 17 08:32:43 2010 +0300 +++ b/apengine/apeng/src/ApListItemKey.cpp Mon Oct 04 00:43:42 2010 +0300 @@ -32,7 +32,6 @@ // void TApListItemNameKey::SetPtr( CApListItemList* aPtr ) { - iList = aPtr; } @@ -42,13 +41,7 @@ // TInt TApListItemNameKey::Compare( TInt aLeft,TInt aRight ) const { - TInt retval = - iList->At( aLeft )->Name().CompareC( iList->At( aRight )->Name() ); - if ( !iAscending ) - { - retval *= -1; - } - return retval; + return 0; } @@ -58,8 +51,7 @@ // TAny* TApListItemNameKey::At( TInt anIndex ) const { - TAny* ptr = MUTABLE_CAST( TDesC16*, &(iList->At( anIndex )->Name())); - return ptr; + return NULL; } @@ -71,8 +63,6 @@ TApListItemNameKey::TApListItemNameKey( TBool aAscending ) :TKeyArrayFix( 0, ECmpCollated ) { - iList = NULL; - iAscending = aAscending; } @@ -91,7 +81,6 @@ // void TApListItemUidKey::SetPtr( CApListItemList* aPtr ) { - iList = aPtr; } @@ -101,23 +90,7 @@ // TInt TApListItemUidKey::Compare( TInt aLeft,TInt aRight ) const { - TInt retval( 1 ); - if ( iList->At( aLeft )->Uid() < iList->At( aRight )->Uid() ) - { - retval = -1; - } - else - { - if ( iList->At( aLeft )->Uid() == iList->At( aRight )->Uid() ) - { - retval = 0; - } - } - if ( !iAscending ) - { - retval *= -1; - } - return retval; + return 0; } @@ -127,8 +100,7 @@ // TAny* TApListItemUidKey::At( TInt anIndex ) const { - TAny* ptr = MUTABLE_CAST( TUint32*, &(iList->At( anIndex )->iUid) ); - return ptr; + return NULL; } @@ -140,8 +112,6 @@ TApListItemUidKey::TApListItemUidKey( TBool aAscending ) :TKeyArrayFix( 0, ECmpCollated ) { - iList = NULL; - iAscending = aAscending; }