瀏覽代碼

size variable in remove_block_from_lists() is used only on fixed lists

Ioannis Koutras 13 年之前
父節點
當前提交
778b14b7de
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/linked_lists/linked_lists.c

+ 0 - 2
src/linked_lists/linked_lists.c

@@ -114,12 +114,10 @@ void remove_block_from_lists(void **block, heap_t *heap) {
 #ifdef WITH_FIXED_LISTS
     int fixed_list_id, i;
     maptable_node_t *current_maptable_node;
-#endif /* WITH_FIXED_LISTS */
     size_t size;
 
     size = get_size(*block);
 
-#ifdef WITH_FIXED_LISTS
     /* Check if it is a block of a fixed list */
     fixed_list_id = map_size_to_list(heap, size);
     if(fixed_list_id != -1) {