Skip to content

Commit 5109e61

Browse files
committed
Remove unused variable
1 parent eeb69e6 commit 5109e61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/df/core/df_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,7 @@ df_trap_net_from_thread__step_over_inst(Arena *arena, DF_Entity *thread)
26822682
internal B32
26832683
df_advance_current_snapshot(Arena *arena, DF_CmdList *cmds, DF_Entity *thread)
26842684
{
2685-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
2685+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
26862686
{
26872687
if(child->kind == DF_EntityKind_Snapshot && child->b32 == 1)
26882688
{
@@ -2711,7 +2711,6 @@ df_thread_snapshot(DF_Entity *thread)
27112711
return;
27122712
}
27132713

2714-
DF_Entity *prev = thread->last;
27152714
DF_Entity *snapshot = df_entity_alloc(0, thread, DF_EntityKind_Snapshot);
27162715
df_entity_equip_ctrl_machine_id(snapshot, thread->ctrl_machine_id);
27172716
df_entity_equip_ctrl_handle(snapshot, snapshot_handle);
@@ -5971,7 +5970,8 @@ df_hash_current_thread_snapshot(DF_Entity *thread, U32 *active_snapshot_index)
59715970
DF_Handle handle = df_handle_from_entity(thread);
59725971
U64 hash = df_hash_from_string(str8_struct(&handle));
59735972
*active_snapshot_index = 0;
5974-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) {
5973+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
5974+
{
59755975
if (child->kind == DF_EntityKind_Snapshot && child->b32) {
59765976
break;
59775977
}
@@ -6944,7 +6944,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
69446944
for(DF_EntityNode *n = threads.first; n != 0; n = n->next)
69456945
{
69466946
DF_Entity *thread = n->entity;
6947-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
6947+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
69486948
{
69496949
if (child->kind == DF_EntityKind_Snapshot)
69506950
{

src/df/gfx/df_gfx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9206,7 +9206,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
92069206
ui_set_next_text_alignment(UI_TextAlign_Center);
92079207

92089208
B32 is_snapshot_active = 0;
9209-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
9209+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
92109210
{
92119211
if (child->kind == DF_EntityKind_Snapshot && child->b32 == 1)
92129212
{

0 commit comments

Comments
 (0)