From 2aaef48c5c362bb3e04d0c9cd1e722e21b3755e5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 5 Aug 2016 00:54:05 +0100 Subject: String support --- src/parser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 184668c4b..faf462cd8 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2063,10 +2063,7 @@ void parse_file(Parser *p, AstFile *f) { } else { if (node->kind == AstNode_ImportDecl) { auto *id = &node->ImportDecl; - String file = id->filepath.string; - String file_str = {}; - if (file.text[0] == '"') - file_str = make_string(file.text+1, file.len-2); + String file_str = id->filepath.string; char ext[] = ".odin"; isize ext_len = gb_size_of(ext)-1; -- cgit v1.2.3