From: Mike D. Lowis Date: Thu, 1 Mar 2012 15:24:19 +0000 (-0500) Subject: Removed unused variable X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=a4e7a9823d11038500059e20142d5ada6b4fd483;p=archive%2Fcork.git Removed unused variable --- diff --git a/source/cork.cpp b/source/cork.cpp index 1804b5f..97a91ed 100644 --- a/source/cork.cpp +++ b/source/cork.cpp @@ -79,25 +79,20 @@ void insert_record(void * ptr, BlockTableEntry_T* entry) void erase_record(void * ptr) { - int depth = 0; unsigned int index = ((unsigned int)ptr) % TBL_SIZE; BlockTableEntry_T* last = Block_Table.blocks[ index ]; BlockTableEntry_T* curr = last; while( curr != NULL ) { - depth = 1; if( curr->ptr == ptr ) { - depth = 2; if(last == curr) { - depth = 3; Block_Table.blocks[ index ] = (BlockTableEntry_T*)curr->next; } else { - depth = 4; last->next = curr->next; } free(curr);