summaryrefslogtreecommitdiff
path: root/src/buildtool/main/build_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/main/build_utils.cpp')
-rw-r--r--src/buildtool/main/build_utils.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/buildtool/main/build_utils.cpp b/src/buildtool/main/build_utils.cpp
index 492e80d6..5b8d142d 100644
--- a/src/buildtool/main/build_utils.cpp
+++ b/src/buildtool/main/build_utils.cpp
@@ -83,15 +83,6 @@ auto CreateTargetCacheWriterMap(
TargetCacheKey tc_key{key};
// check if entry actually needs storing
if (not cache_targets.contains(tc_key)) {
- // sanity check: if not in the map, then it must be in cache
- if (not tc.Read(tc_key)) {
- (*logger)(
- fmt::format("Target-cache key {} is neither stored "
- "nor marked for storing",
- key.ToString()),
- /*fatal=*/true);
- return;
- }
// entry already in target-cache, so nothing to be done
(*setter)(nullptr);
return;