From 72f3cee2955d17d2d8070cac4ca7c57a40fcfb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Bie=C5=84kowski?= Date: Tue, 16 Jan 2024 12:54:05 +0100 Subject: [PATCH] Remove unused variable --- src/df/core/df_core.c | 8 ++++---- src/df/gfx/df_gfx.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/df/core/df_core.c b/src/df/core/df_core.c index abc6ae8f..daa079d0 100644 --- a/src/df/core/df_core.c +++ b/src/df/core/df_core.c @@ -2682,7 +2682,7 @@ df_trap_net_from_thread__step_over_inst(Arena *arena, DF_Entity *thread) internal B32 df_advance_current_snapshot(Arena *arena, DF_CmdList *cmds, DF_Entity *thread) { - for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) + for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) { if(child->kind == DF_EntityKind_Snapshot && child->b32 == 1) { @@ -2711,7 +2711,6 @@ df_thread_snapshot(DF_Entity *thread) return; } - DF_Entity *prev = thread->last; DF_Entity *snapshot = df_entity_alloc(0, thread, DF_EntityKind_Snapshot); df_entity_equip_ctrl_machine_id(snapshot, thread->ctrl_machine_id); df_entity_equip_ctrl_handle(snapshot, snapshot_handle); @@ -5971,7 +5970,8 @@ df_hash_current_thread_snapshot(DF_Entity *thread, U32 *active_snapshot_index) DF_Handle handle = df_handle_from_entity(thread); U64 hash = df_hash_from_string(str8_struct(&handle)); *active_snapshot_index = 0; - for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) { + for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) + { if (child->kind == DF_EntityKind_Snapshot && child->b32) { break; } @@ -6944,7 +6944,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt) for(DF_EntityNode *n = threads.first; n != 0; n = n->next) { DF_Entity *thread = n->entity; - for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) + for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) { if (child->kind == DF_EntityKind_Snapshot) { diff --git a/src/df/gfx/df_gfx.c b/src/df/gfx/df_gfx.c index c7cb8326..7f53c033 100644 --- a/src/df/gfx/df_gfx.c +++ b/src/df/gfx/df_gfx.c @@ -9206,7 +9206,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_ ui_set_next_text_alignment(UI_TextAlign_Center); B32 is_snapshot_active = 0; - for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) + for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) { if (child->kind == DF_EntityKind_Snapshot && child->b32 == 1) {