From 7845769d4b417fdd321740c5404016dbc3119d43 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Aug 2021 15:03:10 +0100 Subject: Remove unused code --- src/docs_writer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/docs_writer.cpp') diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 58e674d1d..8708724e8 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -301,7 +301,6 @@ bool odin_doc_append_comment_group_string(Array *buf, CommentGroup *g) { String original_comment = comment; bool slash_slash = comment[1] == '/'; - bool slash_star = comment[1] == '*'; if (comment[1] == '/') { comment.text += 2; comment.len -= 2; @@ -895,6 +894,7 @@ void odin_doc_update_entities(OdinDocWriter *w) { for_array(i, entities) { Entity *e = entities[i]; OdinDocTypeIndex type_index = odin_doc_type(w, e->type); + gb_unused(type_index); } } @@ -974,7 +974,6 @@ OdinDocArray odin_doc_add_pkg_entities(OdinDocWriter *w, Ast auto entity_indices = array_make(heap_allocator(), 0, w->entity_cache.entries.count); defer (array_free(&entity_indices)); - EntityKind curr_entity_kind = Entity_Invalid; for_array(i, entities) { Entity *e = entities[i]; if (e->pkg != pkg) { -- cgit v1.2.3