From 75b7b7c210c62405a29068826d5ebb67ac6d6d68 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 1 Apr 2025 16:08:37 +0200 Subject: Remove unused error constructor and getter These constructor for eroneous state are not in use anymore since we replaced this error state with an optional in the parent nodes. gcc/rust/ChangeLog: * ast/rust-expr.h: Remove error getter and constructor. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/ast/rust-expr.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 3ce78c6..e6cfa27 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -31,11 +31,6 @@ public: {} // Returns whether the LoopLabel is in an error state. - bool is_error () const { return label.is_error (); } - - // Creates an error state LoopLabel. - static LoopLabel error () { return LoopLabel (Lifetime::error ()); } - location_t get_locus () const { return locus; } Lifetime &get_lifetime () { return label; } -- cgit v1.1