Selaa lähdekoodia

libdpkg: Remove unused dumpchain macro

Got converted to a macro just to avoid a compiler warning in
commit a1d9dc46c55fcc012854f8aa99058d5bb14c2a8a. The proper fix would
have been to either remove it or use it, which we are doing now.
Guillem Jover 16 vuotta sitten
vanhempi
commit
0716206865
1 muutettua tiedostoa jossa 0 lisäystä ja 13 poistoa
  1. 0 13
      lib/dpkg/showpkg.c

+ 0 - 13
lib/dpkg/showpkg.c

@@ -199,19 +199,6 @@ parseformat(const char *fmt)
 	return head;
 	return head;
 }
 }
 
 
-#define dumpchain(head) \
-{ \
-	const struct lstitem *ptr = head; \
-\
-	while (ptr) { \
-		printf("Type: %s\n", (ptr->type == string) ? "string" : "field"); \
-		printf("Width: %d\n", ptr->width); \
-		printf("Data: %s\n", ptr->data); \
-		printf("\n"); \
-		ptr = ptr->next; \
-	} \
-}
-
 void
 void
 show1package(const struct lstitem *head, struct pkginfo *pkg)
 show1package(const struct lstitem *head, struct pkginfo *pkg)
 {
 {