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

@ -128,10 +128,6 @@ static void getAllExprs(EvalState& state, const Path& path, StringSet& attrs,
Value& vFun = state.getBuiltin("import");
Value& vArg(*state.allocValue());
mkString(vArg, path2);
if (v.attrs->size() == v.attrs->capacity()) {
throw Error(format("too many Nix expressions in directory '%1%'") %
path);
}
mkApp(*state.allocAttr(v, state.symbols.Create(attrName)), vFun, vArg);
} else if (S_ISDIR(st.st_mode)) {
/* `path2' is a directory (with no default.nix in it);
@ -163,7 +159,6 @@ static void loadSourceExpr(EvalState& state, const Path& path, Value& v) {
0);
StringSet attrs;
getAllExprs(state, path, attrs, v);
v.attrs->sort();
}
else {