diff options
author | Vincent Ambo <mail@tazj.in> | 2020-07-19T16·59+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-07-19T19·02+0000 |
commit | 324d385b29979dee066a36250cfea9e030f24bfe (patch) | |
tree | 9dcc6f751eed51b825171865f2d7c3526db16b04 /third_party/nix/src/libexpr/attr-set.cc | |
parent | 02066a4bab3f534569c61f571c25d519a1a569ad (diff) |
refactor(3p/nix): Rename & undeprecate Bindings::lexicographicOrder r/1400
The function is renamed to `SortedByKeys`, which is more descriptive, and annotated with a comment about what it is used for. The deprecation warning has been removed because this function is currently functionally required. Change-Id: I0ee3a76deff05f366feca9ddac8f38ab34bffbd0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1288 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/nix/src/libexpr/attr-set.cc')
-rw-r--r-- | third_party/nix/src/libexpr/attr-set.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/attr-set.cc b/third_party/nix/src/libexpr/attr-set.cc index f1f40454c3f8..900ae7a86e91 100644 --- a/third_party/nix/src/libexpr/attr-set.cc +++ b/third_party/nix/src/libexpr/attr-set.cc @@ -37,7 +37,7 @@ size_t Bindings::size() const { return attributes_.size(); } bool Bindings::empty() { return attributes_.empty(); } -std::vector<const Attr*> Bindings::lexicographicOrder() { +std::vector<const Attr*> Bindings::SortedByKeys() { std::vector<const Attr*> res; res.reserve(attributes_.size()); |