chore(3p/nix/libexpr): Delete Bindings::sort

This function does nothing anymore since the attributes are always
in-order.
This commit is contained in:
Vincent Ambo 2020-05-22 03:35:07 +01:00
parent 986a8f6b75
commit 68e6e92a20
14 changed files with 6 additions and 54 deletions

View file

@ -252,10 +252,10 @@ static void prim_fetchGit(EvalState& state, const Pos& pos, Value** args,
gitInfo.shortRev);
mkInt(*state.allocAttr(v, state.symbols.Create("revCount")),
gitInfo.revCount);
v.attrs->sort();
if (state.allowedPaths)
if (state.allowedPaths) {
state.allowedPaths->insert(state.store->toRealPath(gitInfo.storePath));
}
}
static RegisterPrimOp r("fetchGit", 1, prim_fetchGit);