From 5b391a5a4fc5433c776f4e45daf22650d87b3c36 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 13 Nov 2024 14:51:08 -0800 Subject: [PATCH] Remove unused list_remove and list_find_prev helper macros in parser.h Signed-off-by: Ryan Lee --- parser/parser.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/parser/parser.h b/parser/parser.h index 2d46ce3f3..5d657804c 100644 --- a/parser/parser.h +++ b/parser/parser.h @@ -242,17 +242,6 @@ do { \ len; \ }) -#define list_find_prev(LIST, ENTRY) \ -({ \ - typeof(ENTRY) tmp, prev = NULL; \ - list_for_each((LIST), tmp) { \ - if (tmp == (ENTRY)) \ - break; \ - prev = tmp; \ - } \ - prev; \ -}) - #define list_pop(LIST) \ ({ \ typeof(LIST) _entry = (LIST); \ @@ -270,12 +259,6 @@ do { \ (LIST) = (ENTRY)->next; \ (ENTRY)->next = NULL; \ -#define list_remove(LIST, ENTRY) \ -do { \ - typeof(ENTRY) prev = list_find_prev((LIST), (ENTRY)); \ - list_remove_at((LIST), prev, (ENTRY)); \ -} while (0) - #define DUP_STRING(orig, new, field, fail_target) \ do { \