]> git.mdlowis.com Git - archive/cork.git/commitdiff
Removed unused variable
authorMike D. Lowis <mike@mdlowis.com>
Thu, 1 Mar 2012 15:24:19 +0000 (10:24 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Thu, 1 Mar 2012 15:24:19 +0000 (10:24 -0500)
source/cork.cpp

index 1804b5fab2adbfe72c2a3b94fefcb43476f4256a..97a91edb0c373f54d3dc8ecc402fafdb484a8890 100644 (file)
@@ -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);