From: Joel Rosdahl Date: Tue, 6 Mar 2018 20:11:23 +0000 (+0100) Subject: cleanup: Remove special-casing of files from ccache 2.x X-Git-Tag: v3.4.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c440a94997b55f49844ef8cde9e0866eb9ad415b;p=thirdparty%2Fccache.git cleanup: Remove special-casing of files from ccache 2.x It feels like a safe assumption that nobody will run ccache 3.4.x and 2.x on the same cache directory. --- diff --git a/src/cleanup.c b/src/cleanup.c index 458408264..e0b4c620c 100644 --- a/src/cleanup.c +++ b/src/cleanup.c @@ -140,8 +140,7 @@ sort_and_clean(void) || str_eq(ext, ".d") || str_eq(ext, ".gcno") || str_eq(ext, ".dia") - || str_eq(ext, ".stderr") - || str_eq(ext, "")) { + || str_eq(ext, ".stderr")) { char *base = remove_extension(files[i]->fname); if (!str_eq(base, last_base)) { // Avoid redundant unlinks. // Make sure that all sibling files are deleted so that a cached result @@ -154,7 +153,6 @@ sort_and_clean(void) delete_sibling_file(base, ".gcno"); delete_sibling_file(base, ".dia"); delete_sibling_file(base, ".stderr"); - delete_sibling_file(base, ""); // Object file from ccache 2.4. } free(last_base); last_base = base;