aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/attr-set.hh
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-03-04 19:47:32 +0100
committerpennae <github@quasiparticle.net>2022-04-21 21:25:18 +0200
commit38de79fcf7e00187107e638036c010911d1b675b (patch)
tree7d8c5f98e67b15b5d0de7ffc33641765d291acfd /src/libexpr/attr-set.hh
parentff0fd91ed23ae9d851bf27c4df3ec77f7028699b (diff)
remove Bindings::need
a future commit will remove the ability to convert the symbol type used in bindings to strings. since we only have two users we can inline the error check.
Diffstat (limited to 'src/libexpr/attr-set.hh')
-rw-r--r--src/libexpr/attr-set.hh12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libexpr/attr-set.hh b/src/libexpr/attr-set.hh
index cad9743ea..1e6c548c6 100644
--- a/src/libexpr/attr-set.hh
+++ b/src/libexpr/attr-set.hh
@@ -73,18 +73,6 @@ public:
return nullptr;
}
- Attr & need(const Symbol & name, const Pos & pos = noPos)
- {
- auto a = get(name);
- if (!a)
- throw Error({
- .msg = hintfmt("attribute '%s' missing", name),
- .errPos = pos
- });
-
- return *a;
- }
-
iterator begin() { return &attrs[0]; }
iterator end() { return &attrs[size_]; }