Skip to content

Commit

Permalink
Merge pull request NixOS#5111 from Pamplemousse/clean
Browse files Browse the repository at this point in the history
Minor maintenance cleaning
  • Loading branch information
edolstra authored Aug 9, 2021
2 parents 27444d4 + 2de7a1f commit 8943e31
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ perl/Makefile.config

/src/nix-prefetch-url/nix-prefetch-url

# /src/nix-daemon/
/src/nix-daemon/nix-daemon

/src/nix-collect-garbage/nix-collect-garbage

# /src/nix-channel/
Expand Down
2 changes: 0 additions & 2 deletions src/libexpr/primops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3645,9 +3645,7 @@ void EvalState::createBaseEnv()
if (!evalSettings.pureEval) {
mkInt(v, time(0));
addConstant("__currentTime", v);
}

if (!evalSettings.pureEval) {
mkString(v, settings.thisSystem.get());
addConstant("__currentSystem", v);
}
Expand Down
11 changes: 0 additions & 11 deletions src/libstore/binary-cache-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,6 @@ AutoCloseFD openFile(const Path & path)
return fd;
}

struct FileSource : FdSource
{
AutoCloseFD fd2;

FileSource(const Path & path)
: fd2(openFile(path))
{
fd = fd2.get();
}
};

ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
Source & narSource, RepairFlag repair, CheckSigsFlag checkSigs,
std::function<ValidPathInfo(HashResult)> mkInfo)
Expand Down

0 comments on commit 8943e31

Please sign in to comment.