diff --git a/list.c b/list.c index 17a4e903e..26c1749b8 100644 --- a/list.c +++ b/list.c @@ -192,16 +192,6 @@ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) /* Only used during decision coverage testing. */ mtCOVERAGE_TEST_DELAY(); - /* Make sure the index is left pointing to a valid item. */ - if( pxList->pxIndex == pxItemToRemove ) - { - pxList->pxIndex = pxItemToRemove->pxPrevious; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - pxItemToRemove->pxContainer = NULL; ( pxList->uxNumberOfItems )--;