Skip to content

Commit 88cfe02

Browse files
committed
Remove unused variable
1 parent 20319c2 commit 88cfe02

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
@@ -2774,7 +2774,7 @@ df_trap_net_from_thread__step_over_inst(Arena *arena, DF_Entity *thread)
27742774
internal B32
27752775
df_advance_current_snapshot(Arena *arena, DF_CmdList *cmds, DF_Entity *thread)
27762776
{
2777-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
2777+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
27782778
{
27792779
if(child->kind == DF_EntityKind_Snapshot && child->b32 == 1)
27802780
{
@@ -2803,7 +2803,6 @@ df_thread_snapshot(DF_Entity *thread)
28032803
return;
28042804
}
28052805

2806-
DF_Entity *prev = thread->last;
28072806
DF_Entity *snapshot = df_entity_alloc(0, thread, DF_EntityKind_Snapshot);
28082807
df_entity_equip_ctrl_machine_id(snapshot, thread->ctrl_machine_id);
28092808
df_entity_equip_ctrl_handle(snapshot, snapshot_handle);
@@ -6144,7 +6143,8 @@ df_hash_current_thread_snapshot(DF_Entity *thread, U32 *active_snapshot_index)
61446143
DF_Handle handle = df_handle_from_entity(thread);
61456144
U64 hash = df_hash_from_string(str8_struct(&handle));
61466145
*active_snapshot_index = 0;
6147-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next) {
6146+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
6147+
{
61486148
if (child->kind == DF_EntityKind_Snapshot && child->b32) {
61496149
break;
61506150
}
@@ -7125,7 +7125,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
71257125
for(DF_EntityNode *n = threads.first; n != 0; n = n->next)
71267126
{
71277127
DF_Entity *thread = n->entity;
7128-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
7128+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
71297129
{
71307130
if (child->kind == DF_EntityKind_Snapshot)
71317131
{

src/df/gfx/df_gfx.c

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

92419241
B32 is_snapshot_active = 0;
9242-
for (DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
9242+
for(DF_Entity *child = thread->first; !df_entity_is_nil(child); child = child->next)
92439243
{
92449244
if (child->kind == DF_EntityKind_Snapshot && child->b32 == 1)
92459245
{

0 commit comments

Comments
 (0)