From acc9e17d5c270a8eae9d094af72ae44a767eb7e3 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 16 Oct 2017 12:51:59 -0500 Subject: [PATCH] libpkgconf: fragment: remove obsolete code in pkgconf_fragment_should_munge() --- libpkgconf/fragment.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libpkgconf/fragment.c b/libpkgconf/fragment.c index 08a836c..d43f62e 100644 --- a/libpkgconf/fragment.c +++ b/libpkgconf/fragment.c @@ -70,22 +70,12 @@ pkgconf_fragment_is_unmergeable(const char *string) static inline bool pkgconf_fragment_should_munge(const char *string, const char *sysroot_dir) { - static struct pkgconf_fragment_check check_fragments[] = { - {"-isystem", 8}, - {"-idirafter", 10}, - {"-include", 8}, - }; - if (*string != '/') return false; if (sysroot_dir != NULL && strncmp(sysroot_dir, string, strlen(sysroot_dir))) return true; - for (size_t i = 0; i < PKGCONF_ARRAY_SIZE(check_fragments); i++) - if (!strncmp(string, check_fragments[i].token, check_fragments[i].len)) - return true; - return false; }