diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-10-28 18:46:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 18:46:18 +0000 |
commit | cba61d8dcbe1ac0fb23a96b2974541b201292465 (patch) | |
tree | 9a3a4588f82358c9139d07455c2b4e1f80ed53b6 /gcc/rust/ast | |
parent | a2ce3ef6b024736dfcbfabb062100c685fa95c6b (diff) | |
parent | 08b83163db07c903a6524f15f9adce4a0e7fa359 (diff) | |
download | gcc-cba61d8dcbe1ac0fb23a96b2974541b201292465.zip gcc-cba61d8dcbe1ac0fb23a96b2974541b201292465.tar.gz gcc-cba61d8dcbe1ac0fb23a96b2974541b201292465.tar.bz2 |
Merge #774
774: Removed lambda in iterate_params within CallExpr and MethodCallExpr r=tschwinge a=npate012
Signed-off-by: Nirmal Patel <npate012@gmail.com>
Removed iterate_params from AST::CallExpr and AST::MethodCallExpr.
Fixes #722 #723
Co-authored-by: Nirmal Patel <npate012@gmail.com>
Diffstat (limited to 'gcc/rust/ast')
-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 { |