diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-resolve-path.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.h b/gcc/rust/backend/rust-compile-resolve-path.h index 2f3cb68..ae469e6 100644 --- a/gcc/rust/backend/rust-compile-resolve-path.h +++ b/gcc/rust/backend/rust-compile-resolve-path.h @@ -35,7 +35,7 @@ public: return resolver.resolved; } - void visit (HIR::PathInExpression &expr); + void visit (HIR::PathInExpression &expr) override; private: ResolvePathRef (Context *ctx) : HIRCompileBase (ctx), resolved (nullptr) {} @@ -43,24 +43,6 @@ private: Bexpression *resolved; }; -class ResolvePathType : public HIRCompileBase -{ -public: - static Btype *Compile (HIR::Expr *expr, Context *ctx) - { - ResolvePathType resolver (ctx); - expr->accept_vis (resolver); - return resolver.resolved; - } - - void visit (HIR::PathInExpression &expr); - -private: - ResolvePathType (Context *ctx) : HIRCompileBase (ctx), resolved (nullptr) {} - - Btype *resolved; -}; - } // namespace Compile } // namespace Rust |