diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-02-28 00:28:55 -0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-03-29 21:13:35 +0000 |
commit | 5148f044c62031d7ec762037b97d61b696986916 (patch) | |
tree | 2e328b7dfe0e6f890203b84331724231765828bb | |
parent | c5427467abbd672aa39b43f1648d93ff7b11c2dc (diff) | |
download | gcc-5148f044c62031d7ec762037b97d61b696986916.zip gcc-5148f044c62031d7ec762037b97d61b696986916.tar.gz gcc-5148f044c62031d7ec762037b97d61b696986916.tar.bz2 |
Remove commented out TuplePatternItemsSingle
gcc/rust/ChangeLog:
* ast/rust-pattern.h: Remove commented out code.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
-rw-r--r-- | gcc/rust/ast/rust-pattern.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/rust/ast/rust-pattern.h b/gcc/rust/ast/rust-pattern.h index 079c7a9..b30383f 100644 --- a/gcc/rust/ast/rust-pattern.h +++ b/gcc/rust/ast/rust-pattern.h @@ -1222,41 +1222,6 @@ protected: virtual TuplePatternItems *clone_tuple_pattern_items_impl () const = 0; }; -// Class representing TuplePattern patterns where there is only a single pattern -/*class TuplePatternItemsSingle : public TuplePatternItems { - // Pattern pattern; - std::unique_ptr<Pattern> pattern; - - public: - TuplePatternItemsSingle(Pattern* pattern) : pattern(pattern) {} - - // Copy constructor uses clone - TuplePatternItemsSingle(TuplePatternItemsSingle const& other) : - pattern(other.pattern->clone_pattern()) {} - - // Destructor - define here if required - - // Overload assignment operator to clone - TuplePatternItemsSingle& operator=(TuplePatternItemsSingle const& other) { - pattern = other.pattern->clone_pattern(); - - return *this; - } - - // move constructors - TuplePatternItemsSingle(TuplePatternItemsSingle&& other) = default; - TuplePatternItemsSingle& operator=(TuplePatternItemsSingle&& other) = -default; - - protected: - // Use covariance to implement clone function as returning this object -rather than base virtual TuplePatternItemsSingle* -clone_tuple_pattern_items_impl() const override { return new -TuplePatternItemsSingle(*this); - } -};*/ -// removed in favour of single-element TuplePatternItemsMultiple - // Class representing TuplePattern patterns where there are multiple patterns class TuplePatternItemsMultiple : public TuplePatternItems { |