From 68e6e92a20b8ee01de3b89e72fc68517fea6f70c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 22 May 2020 03:35:07 +0100 Subject: chore(3p/nix/libexpr): Delete Bindings::sort This function does nothing anymore since the attributes are always in-order. --- third_party/nix/src/libexpr/primops/fetchMercurial.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'third_party/nix/src/libexpr/primops/fetchMercurial.cc') diff --git a/third_party/nix/src/libexpr/primops/fetchMercurial.cc b/third_party/nix/src/libexpr/primops/fetchMercurial.cc index 1e7064f97d9f..9223f1c3ca99 100644 --- a/third_party/nix/src/libexpr/primops/fetchMercurial.cc +++ b/third_party/nix/src/libexpr/primops/fetchMercurial.cc @@ -226,10 +226,10 @@ static void prim_fetchMercurial(EvalState& state, const Pos& pos, Value** args, mkString(*state.allocAttr(v, state.symbols.Create("shortRev")), std::string(hgInfo.rev, 0, 12)); mkInt(*state.allocAttr(v, state.symbols.Create("revCount")), hgInfo.revCount); - v.attrs->sort(); - if (state.allowedPaths) + if (state.allowedPaths) { state.allowedPaths->insert(state.store->toRealPath(hgInfo.storePath)); + } } static RegisterPrimOp r("fetchMercurial", 1, prim_fetchMercurial); -- cgit 1.4.1