From a4e7a9823d11038500059e20142d5ada6b4fd483 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Thu, 1 Mar 2012 10:24:19 -0500 Subject: [PATCH] Removed unused variable --- source/cork.cpp | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.52.0