aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2025-02-21 22:51:32 -0500
committerPhilip Herron <philip.herron@embecosm.com>2025-02-24 08:32:40 +0000
commit22333202dc0da0fe8dc02b1e85d52bf5cd8ca39f (patch)
tree3c140e8d558e0f69677356116c24c224dd6f8908 /gcc/rust/ast/rust-ast.h
parentc3a707ae42bb15b84924d93ea99b040b190b21b1 (diff)
downloadgcc-22333202dc0da0fe8dc02b1e85d52bf5cd8ca39f.zip
gcc-22333202dc0da0fe8dc02b1e85d52bf5cd8ca39f.tar.gz
gcc-22333202dc0da0fe8dc02b1e85d52bf5cd8ca39f.tar.bz2
Remove some member functions from SingleASTNode
gcc/rust/ChangeLog: * ast/rust-ast.h (SingleASTNode::take_trait_item): Remove. (SingleASTNode::take_impl_item): Remove. (SingleASTNode::take_trait_impl_item): Remove. * expand/rust-expand-visitor.cc (ExpandVisitor::visit): Replace calls to aforementioned functions with calls to SingleASTNode::take_assoc_item. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index e3999db..c74b1c4 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -1996,13 +1996,6 @@ public:
return std::move (item);
}
- std::unique_ptr<AssociatedItem> take_trait_item ()
- {
- rust_assert (!is_error ());
- return std::unique_ptr<AssociatedItem> (
- static_cast<AssociatedItem *> (assoc_item.release ()));
- }
-
std::unique_ptr<ExternalItem> take_external_item ()
{
rust_assert (!is_error ());
@@ -2015,16 +2008,6 @@ public:
return std::move (assoc_item);
}
- std::unique_ptr<AssociatedItem> take_impl_item ()
- {
- return take_assoc_item ();
- }
-
- std::unique_ptr<AssociatedItem> take_trait_impl_item ()
- {
- return take_assoc_item ();
- }
-
std::unique_ptr<Type> take_type ()
{
rust_assert (!is_error ());