From 37a905d5a3104a78216dd3a68914af372e75522c Mon Sep 17 00:00:00 2001 From: Alfred Gedeon Date: Tue, 9 Feb 2021 00:16:13 -0800 Subject: [PATCH] Code: Remove dead code --- list.c | 10 ---------- 1 file changed, 10 deletions(-) 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 )--;