aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.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/docs_writer.cpp
parent33239324b83c7a32471fe147c1539fb86ca48404 (diff)
Remove unused code
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp3
1 files changed, 1 insertions, 2 deletions
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<u8> *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<OdinDocEntityIndex> odin_doc_add_pkg_entities(OdinDocWriter *w, Ast
auto entity_indices = array_make<OdinDocEntityIndex>(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) {