]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove now redundant check for existing result file
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 3 Jul 2019 18:45:36 +0000 (20:45 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 3 Jul 2019 18:45:36 +0000 (20:45 +0200)
src/ccache.c

index 71ad388f2f4412e3e1cfa04fdf71e0aec023e7d8..746282fdd5d7a596492b7f9c0f471ed85f7deebc 100644 (file)
@@ -2122,14 +2122,6 @@ from_cache(enum fromcache_call_mode mode, bool put_result_in_manifest)
                return;
        }
 
-       // Occasionally, e.g. on hard reset, our cache ends up as just filesystem
-       // meta-data with no content. Catch an easy case of this.
-       struct stat st;
-       if (stat(cached_result, &st) != 0) {
-               cc_log("Cache file %s not in cache", cached_result);
-               return;
-       }
-
        MTR_BEGIN("cache", "from_cache");
 
        // (If mode != FROMCACHE_DIRECT_MODE, the dependency file is created by gcc.)