diff options
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 0d3c50e..05c78b7 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -1916,15 +1916,6 @@ public: void mark_for_strip () override { function = nullptr; } bool is_marked_for_strip () const override { return function == nullptr; } - void iterate_params (std::function<bool (Expr *)> cb) - { - for (auto ¶m : params) - { - if (!cb (param.get ())) - return; - } - } - // TODO: this mutable getter seems really dodgy. Think up better way. const std::vector<std::unique_ptr<Expr> > &get_params () const { @@ -2025,15 +2016,6 @@ public: void mark_for_strip () override { receiver = nullptr; } bool is_marked_for_strip () const override { return receiver == nullptr; } - void iterate_params (std::function<bool (Expr *)> cb) - { - for (auto ¶m : params) - { - if (!cb (param.get ())) - return; - } - } - // TODO: this mutable getter seems really dodgy. Think up better way. const std::vector<std::unique_ptr<Expr> > &get_params () const { |