aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-19 15:03:10 +0100
committergingerBill <bill@gingerbill.org>2021-08-19 15:03:10 +0100
commit7845769d4b417fdd321740c5404016dbc3119d43 (patch)
tree1ae0d5fb26452ac044101a161d202f7b0135f6f2 /src/parser.cpp
parent33239324b83c7a32471fe147c1539fb86ca48404 (diff)
Remove unused code
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index a79413c01..3b5c30207 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2432,7 +2432,6 @@ Ast *parse_operand(AstFile *f, bool lhs) {
bool no_nil = false;
bool maybe = false;
- CommentGroup *docs = f->lead_comment;
Token start_token = f->curr_token;
if (allow_token(f, Token_OpenParen)) {
@@ -3634,7 +3633,6 @@ bool parse_expect_field_separator(AstFile *f, Ast *param) {
}
Ast *parse_struct_field_list(AstFile *f, isize *name_count_) {
- CommentGroup *docs = f->lead_comment;
Token start_token = f->curr_token;
auto decls = array_make<Ast *>(heap_allocator());
@@ -4750,7 +4748,6 @@ ParseFileError init_ast_file(AstFile *f, String fullpath, TokenPos *err_pos) {
isize init_token_cap = gb_max(token_cap, 16);
array_init(&f->tokens, heap_allocator(), 0, gb_max(init_token_cap, 16));
- isize cap0 = f->tokens.capacity;
if (err == TokenizerInit_Empty) {
Token token = {Token_EOF};