mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Remove unused list_remove and list_find_prev helper macros in parser.h
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
d9ee417dc3
commit
5b391a5a4f
1 changed files with 0 additions and 17 deletions
|
@ -242,17 +242,6 @@ do { \
|
||||||
len; \
|
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) \
|
#define list_pop(LIST) \
|
||||||
({ \
|
({ \
|
||||||
typeof(LIST) _entry = (LIST); \
|
typeof(LIST) _entry = (LIST); \
|
||||||
|
@ -270,12 +259,6 @@ do { \
|
||||||
(LIST) = (ENTRY)->next; \
|
(LIST) = (ENTRY)->next; \
|
||||||
(ENTRY)->next = NULL; \
|
(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) \
|
#define DUP_STRING(orig, new, field, fail_target) \
|
||||||
do { \
|
do { \
|
||||||
|
|
Loading…
Add table
Reference in a new issue