Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
donadigo committed Jan 16, 2024
1 parent 77bb75a commit 72f3cee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/df/core/df_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/df/gfx/df_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 72f3cee

Please sign in to comment.