aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-06-28 10:40:21 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-06-28 10:40:21 +0100
commit64832f0c5dd60eae3539e2fe73d72c78fbb22d46 (patch)
tree39dad0d9b9f6de395d74e8a6c7b3df235f93e7f4 /gcc/rust/resolve
parentd5ffe1cdb023f502c09fbc64744f4cf9ad2be90d (diff)
downloadgcc-64832f0c5dd60eae3539e2fe73d72c78fbb22d46.zip
gcc-64832f0c5dd60eae3539e2fe73d72c78fbb22d46.tar.gz
gcc-64832f0c5dd60eae3539e2fe73d72c78fbb22d46.tar.bz2
remove unused class
Diffstat (limited to 'gcc/rust/resolve')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-type.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-type.h b/gcc/rust/resolve/rust-ast-resolve-type.h
index b16799f..f7e17b0 100644
--- a/gcc/rust/resolve/rust-ast-resolve-type.h
+++ b/gcc/rust/resolve/rust-ast-resolve-type.h
@@ -194,21 +194,6 @@ private:
CanonicalPath *canonical_path;
};
-class ResolvePathSegmentToCanonicalPath
-{
-public:
- static CanonicalPath resolve (AST::PathExprSegment &seg)
- {
- if (!seg.has_generic_args ())
- return CanonicalPath::new_seg (seg.get_node_id (),
- seg.get_ident_segment ().as_string ());
-
- ResolveType::type_resolve_generic_args (seg.get_generic_args ());
- return CanonicalPath::new_seg (seg.get_node_id (),
- seg.get_ident_segment ().as_string ());
- }
-};
-
class ResolveTypeBound : public ResolverBase
{
using Rust::Resolver::ResolverBase::visit;