libpkgconf: fragment: remove obsolete code in pkgconf_fragment_should_munge()

pull/164/head
William Pitcock 2017-10-16 12:51:59 -05:00
parent 36551cca83
commit 1297385762
1 changed files with 0 additions and 10 deletions

View File

@ -71,22 +71,12 @@ pkgconf_fragment_is_unmergeable(const char *string)
static inline bool
pkgconf_fragment_should_munge(const char *string, const char *sysroot_dir)
{
static const 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;
}