From 2a257275e8e5397dd1c59b7395dd47d0627bfcbb Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Wed, 10 Jul 2024 16:04:12 +0200 Subject: [PATCH] Remove unused code in CST.hpp --- include/bolt/CST.hpp | 69 -------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/include/bolt/CST.hpp b/include/bolt/CST.hpp index 7df9c3292..1589eff1c 100644 --- a/include/bolt/CST.hpp +++ b/include/bolt/CST.hpp @@ -2920,75 +2920,6 @@ public: }; -// template<> inline NodeKind getNodeType() { return NodeKind::Equals; } -// template<> inline NodeKind getNodeType() { return NodeKind::Colon; } -// template<> inline NodeKind getNodeType() { return NodeKind::Dot; } -// template<> inline NodeKind getNodeType() { return NodeKind::DotDot; } -// template<> inline NodeKind getNodeType() { return NodeKind::Tilde; } -// template<> inline NodeKind getNodeType() { return NodeKind::LParen; } -// template<> inline NodeKind getNodeType() { return NodeKind::RParen; } -// template<> inline NodeKind getNodeType() { return NodeKind::LBracket; } -// template<> inline NodeKind getNodeType() { return NodeKind::RBracket; } -// template<> inline NodeKind getNodeType() { return NodeKind::LBrace; } -// template<> inline NodeKind getNodeType() { return NodeKind::RBrace; } -// template<> inline NodeKind getNodeType() { return NodeKind::RArrow; } -// template<> inline NodeKind getNodeType() { return NodeKind::RArrowAlt; } -// template<> inline NodeKind getNodeType() { return NodeKind::LetKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ForeignKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::MutKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::PubKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::TypeKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ReturnKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ModKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::StructKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::EnumKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ClassKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::InstanceKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ElifKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::IfKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::MatchKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::ElseKeyword; } -// template<> inline NodeKind getNodeType() { return NodeKind::Invalid; } -// template<> inline NodeKind getNodeType() { return NodeKind::EndOfFile; } -// template<> inline NodeKind getNodeType() { return NodeKind::BlockStart; } -// template<> inline NodeKind getNodeType() { return NodeKind::BlockEnd; } -// template<> inline NodeKind getNodeType() { return NodeKind::LineFoldEnd; } -// template<> inline NodeKind getNodeType() { return NodeKind::CustomOperator; } -// template<> inline NodeKind getNodeType() { return NodeKind::Assignment; } -// template<> inline NodeKind getNodeType() { return NodeKind::Identifier; } -// template<> inline NodeKind getNodeType() { return NodeKind::IdentifierAlt; } -// template<> inline NodeKind getNodeType() { return NodeKind::StringLiteral; } -// template<> inline NodeKind getNodeType() { return NodeKind::IntegerLiteral; } -// template<> inline NodeKind getNodeType() { return NodeKind::QualifiedTypeExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::ReferenceTypeExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::ArrowTypeExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::BindPattern; } -// template<> inline NodeKind getNodeType() { return NodeKind::ReferenceExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::NestedExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::MatchExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::BlockExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::LiteralExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::CallExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::InfixExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::PrefixExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::ReturnExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::IfExpression; } -// template<> inline NodeKind getNodeType() { return NodeKind::IfExpressionPart; } -// template<> inline NodeKind getNodeType() { return NodeKind::TypeAssert; } -// template<> inline NodeKind getNodeType() { return NodeKind::Parameter; } -// template<> inline NodeKind getNodeType() { return NodeKind::LetBlockBody; } -// template<> inline NodeKind getNodeType() { return NodeKind::LetExprBody; } -// template<> inline NodeKind getNodeType() { return NodeKind::PrefixFunctionDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::InfixFunctionDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::SuffixFunctionDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::NamedFunctionDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::VariableDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::RecordDeclarationField; } -// template<> inline NodeKind getNodeType() { return NodeKind::RecordDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::ClassDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::InstanceDeclaration; } -// template<> inline NodeKind getNodeType() { return NodeKind::SourceFile; } - } #endif