Procházet zdrojové kódy

libdpkg: Remove unused LIST_CHECKNODE_PART and LIST_CHECKNODE macros

Instead of adding a missing “#include <assert.h>” to the header file,
just remove the unused macros.

Prompted-by: Niels Thykier <niels@thykier.net>
Guillem Jover před 11 roky
rodič
revize
c0e93b4815
1 změnil soubory, kde provedl 0 přidání a 13 odebrání
  1. 0 13
      lib/dpkg/dlist.h

+ 0 - 13
lib/dpkg/dlist.h

@@ -46,20 +46,7 @@
   } while (0)
   } while (0)
 
 
 
 
-#define LIST_CHECKNODE_PART(list, node, part)				\
-  do {									\
-    if ((node)->next) \
-      assert((node)->part next->part prev == (node));	\
-    else \
-      assert((node) == (list).tail);					\
-    if ((node)->prev) \
-      assert((node)->part prev->part next == (node));	\
-    else \
-      assert((node) == (list).head);					\
-  } while (0)
-
 #define LIST_UNLINK(list, node) LIST_UNLINK_PART(list, node,)
 #define LIST_UNLINK(list, node) LIST_UNLINK_PART(list, node,)
 #define LIST_LINK_TAIL(list, node) LIST_LINK_TAIL_PART(list, node,)
 #define LIST_LINK_TAIL(list, node) LIST_LINK_TAIL_PART(list, node,)
-#define LIST_CHECKNODE(list, node) LIST_CHECKNODE_PART(list, node,)
 
 
 #endif
 #endif