diff -r 612c4815aebe -r 4cc1412daed0 mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp --- a/mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp Fri Jul 23 17:31:12 2010 -0500 +++ b/mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp Fri Aug 06 16:51:36 2010 -0500 @@ -4078,14 +4078,6 @@ TInt offset = aCmd.ValueTObjectL( KMPXCollectionCommandIdIncOpenLOffset ); TInt numItems = aCmd.ValueTObjectL( KMPXCollectionCommandIdIncOpenLNumItems ); - TReadDirection direction(EReadUnknown); -/* Ascending and Decending reads are currently not used. We optimized for offset reads. - if( aCmd.IsSupported(KMPXCollectionCommandIdIncOpenLAscDsc) && - aCmd.IsSupported(KMPXCollectionCommandIdIncOpenLKeyItem) ) - { - direction = aCmd.ValueTObjectL(KMPXCollectionCommandIdIncOpenLAscDsc); - } -*/ CMPXCollectionPath* path = aCmd.ValueCObjectL(KMPXCollectionCommandIdIncOpenLPath); CleanupStack::PushL( path ); MPX_DEBUG_PATH( *path ); @@ -4120,21 +4112,7 @@ // Array to read data from CMPXMediaArray* array = CMPXMediaArray::NewL(); CleanupStack::PushL( array ); - - // Do we have to use offset or can we use asc/dsc - // - if( direction == EReadUnknown ) - { - iDbHandler->GetSongsAtOffsetL( array, attrs.Array(), offset, numItems ); - } - else - { - iDbHandler->GetSongsInBlockL( array, attrs.Array(), - aCmd.ValueText( KMPXCollectionCommandIdIncOpenLKeyItem ), - numItems, - direction ); - } - + iDbHandler->GetSongsAtOffsetL( array, attrs.Array(), offset, numItems ); TInt max( path->Count() ); TInt count(0); TInt aryCount( array->Count() );