X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=attr.c;h=fdd110bec55cb3bc5c8ebbb8cffbc33cced530b2;hb=40e747e89d247b3a12e6cddf848d145bf403a72c;hp=b63fe0fc0e99caa07dc2e6da816e1ac8d5942df6;hpb=eab7584e3785d4a210ba326bcb02294285f57a22;p=thirdparty%2Fgit.git diff --git a/attr.c b/attr.c index b63fe0fc0e..fdd110bec5 100644 --- a/attr.c +++ b/attr.c @@ -7,7 +7,6 @@ * an insanely large number of attributes. */ -#define NO_THE_INDEX_COMPATIBILITY_MACROS #include "cache.h" #include "config.h" #include "exec-cmd.h" @@ -1092,7 +1091,7 @@ static void collect_some_attrs(const struct index_state *istate, const char *path, struct attr_check *check) { - int i, pathlen, rem, dirlen; + int pathlen, rem, dirlen; const char *cp, *last_slash = NULL; int basename_offset; @@ -1113,20 +1112,6 @@ static void collect_some_attrs(const struct index_state *istate, all_attrs_init(&g_attr_hashmap, check); determine_macros(check->all_attrs, check->stack); - if (check->nr) { - rem = 0; - for (i = 0; i < check->nr; i++) { - int n = check->items[i].attr->attr_nr; - struct all_attrs_item *item = &check->all_attrs[n]; - if (item->macro) { - item->value = ATTR__UNSET; - rem++; - } - } - if (rem == check->nr) - return; - } - rem = check->all_attrs_nr; fill(path, pathlen, basename_offset, check->stack, check->all_attrs, rem); }