summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-08-25 00:22:29 +0200
committerMark Wielaard <mark@klomp.org>2021-08-29 17:12:36 +0200
commit84d27b926e09ef44dd94be20c97d72bd4b865c40 (patch)
tree5b0d30239eeebdfc65c013888c6eb94ff0c99b2f
parentWIP enum_resolve (diff)
downloadgccrs-84d27b926e09ef44dd94be20c97d72bd4b865c40.tar.gz
gccrs-84d27b926e09ef44dd94be20c97d72bd4b865c40.tar.bz2
gccrs-84d27b926e09ef44dd94be20c97d72bd4b865c40.tar.xz
ast remove unnecessary Enum iterate function
-rw-r--r--gcc/rust/ast/rust-item.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h
index f2dd80f1a7b..da36de501d4 100644
--- a/gcc/rust/ast/rust-item.h
+++ b/gcc/rust/ast/rust-item.h
@@ -2399,15 +2399,6 @@ public:
2399 return where_clause; 2399 return where_clause;
2400 } 2400 }
2401 2401
2402 void iterate (std::function<bool (std::unique_ptr<EnumItem> &)> cb)
2403 {
2404 for (auto &item : items)
2405 {
2406 if (!cb (item))
2407 return;
2408 }
2409 }
2410
2411protected: 2402protected:
2412 /* Use covariance to implement clone function as returning this object 2403 /* Use covariance to implement clone function as returning this object
2413 * rather than base */ 2404 * rather than base */