summaryrefslogtreecommitdiffstats
path: root/source/slang/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parser.cpp')
-rw-r--r--source/slang/parser.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp
index 531606f8d..538e5d576 100644
--- a/source/slang/parser.cpp
+++ b/source/slang/parser.cpp
@@ -835,24 +835,6 @@ namespace Slang
return decl;
}
- static RefPtr<Decl> parsePoundImportDecl(
- Parser* parser)
- {
- parser->haveSeenAnyImportDecls = true;
-
- Token importToken = parser->ReadToken(TokenType::PoundImport);
-
- NameLoc nameAndLoc;
- nameAndLoc.name = getName(parser, importToken.Content);
- nameAndLoc.loc = importToken.loc;
-
- auto decl = new ImportDecl();
- decl->moduleNameAndLoc = nameAndLoc;
- decl->scope = parser->currentScope;
-
- return decl;
- }
-
static NameLoc ParseDeclName(
Parser* parser)
{
@@ -2592,13 +2574,6 @@ namespace Slang
}
break;
- // The preprocessor will generate a custom token to represent
- // the site of a `#import` directive, so that we can catch
- // it downstream in the parser, here.
- case TokenType::PoundImport:
- decl = parsePoundImportDecl(parser);
- break;
-
// If nothing else matched, we try to parse an "ordinary" declarator-based declaration
default:
decl = ParseDeclaratorDecl(parser, containerDecl);