From b26e3cf6c774ea89cd61801fe03c3987824b8c8a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 21 Dec 2016 19:59:47 -0600 Subject: [PATCH] main: fragment_has_system_dir(): remove want_flags checks as they are redundant --- main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.c b/main.c index f938a7e..8d45680 100644 --- a/main.c +++ b/main.c @@ -75,26 +75,20 @@ error_handler(const char *msg, const pkgconf_client_t *client, const void *data) static bool fragment_has_system_dir(const pkgconf_client_t *client, const pkgconf_fragment_t *frag) { - int check_flags = 0; const pkgconf_list_t *check_paths = NULL; switch (frag->type) { case 'L': - check_flags = PKG_KEEP_SYSTEM_LIBS; check_paths = &client->filter_libdirs; break; case 'I': - check_flags = PKG_KEEP_SYSTEM_CFLAGS; check_paths = &client->filter_includedirs; break; default: return false; } - if ((want_flags & check_flags) == 0) - return false; - return pkgconf_path_match_list(frag->data, check_paths); }