aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2025-04-01 16:08:37 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2025-04-07 08:18:19 +0000
commit75b7b7c210c62405a29068826d5ebb67ac6d6d68 (patch)
tree3468b3cdd3036e5bc7659de9a933634f7ed9174a /gcc/rust/ast/rust-expr.h
parentf77aeb99dde12544ea7c29004e88d46a8d5aa7b2 (diff)
downloadgcc-75b7b7c210c62405a29068826d5ebb67ac6d6d68.zip
gcc-75b7b7c210c62405a29068826d5ebb67ac6d6d68.tar.gz
gcc-75b7b7c210c62405a29068826d5ebb67ac6d6d68.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r--gcc/rust/ast/rust-expr.h5
1 files changed, 0 insertions, 5 deletions
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; }