diff options
Diffstat (limited to 'gcc/rust/ast/rust-path.h')
-rw-r--r-- | gcc/rust/ast/rust-path.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index cc2721d..4c437cc 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -754,15 +754,6 @@ public: } size_t get_num_segments () const { return segments.size (); } - - void iterate_segments (std::function<bool (TypePathSegment *)> cb) - { - for (auto it = segments.begin (); it != segments.end (); it++) - { - if (!cb ((*it).get ())) - return; - } - } }; struct QualifiedPathType @@ -1029,15 +1020,6 @@ public: } Location get_locus () const override final { return locus; } - - void iterate_segments (std::function<bool (TypePathSegment *)> cb) - { - for (auto it = segments.begin (); it != segments.end (); it++) - { - if (!cb ((*it).get ())) - return; - } - } }; } // namespace AST } // namespace Rust |