Delete dead openFile in binary-cache-store.cc (#10418)

d64cb33e90 / #5111 previously deleted the dead code where this was used, but missed this.
This commit is contained in:
John Ericson 2024-04-05 14:31:43 -04:00 committed by GitHub
parent a3d5a71c5f
commit 5a365b0c89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,14 +124,6 @@ void BinaryCacheStore::writeNarInfo(ref<NarInfo> narInfo)
diskCache->upsertNarInfo(getUri(), std::string(narInfo->path.hashPart()), std::shared_ptr<NarInfo>(narInfo));
}
AutoCloseFD openFile(const Path & path)
{
auto fd = open(path.c_str(), O_RDONLY | O_CLOEXEC);
if (!fd)
throw SysError("opening file '%1%'", path);
return fd;
}
ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
Source & narSource, RepairFlag repair, CheckSigsFlag checkSigs,
std::function<ValidPathInfo(HashResult)> mkInfo)