mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-12 20:41:26 -07:00
eliminate now-unnecessary config writing mechanism
This commit is contained in:
@@ -5370,12 +5370,6 @@ d_cfg_strings_from_core(Arena *arena, String8 root_path, D_CfgSrc source)
|
||||
return strs;
|
||||
}
|
||||
|
||||
internal void
|
||||
d_cfg_push_write_string(D_CfgSrc src, String8 string)
|
||||
{
|
||||
str8_list_push(d_state->cfg_write_arenas[src], &d_state->cfg_write_data[src], push_str8_copy(d_state->cfg_write_arenas[src], string));
|
||||
}
|
||||
|
||||
//- rjf: current path
|
||||
|
||||
internal String8
|
||||
@@ -5814,12 +5808,6 @@ d_init(void)
|
||||
// rjf: set up run state
|
||||
d_state->ctrl_last_run_arena = arena_alloc();
|
||||
|
||||
// rjf: set up config write state
|
||||
for(D_CfgSrc src = (D_CfgSrc)0; src < D_CfgSrc_COUNT; src = (D_CfgSrc)(src+1))
|
||||
{
|
||||
d_state->cfg_write_arenas[src] = arena_alloc();
|
||||
}
|
||||
|
||||
// rjf: set up initial browse path
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
|
||||
@@ -1027,11 +1027,6 @@ struct D_State
|
||||
Arena *cfg_arena;
|
||||
D_CfgTable cfg_table;
|
||||
|
||||
// rjf: config writing state
|
||||
B32 cfg_write_issued[D_CfgSrc_COUNT];
|
||||
Arena *cfg_write_arenas[D_CfgSrc_COUNT];
|
||||
String8List cfg_write_data[D_CfgSrc_COUNT];
|
||||
|
||||
// rjf: current path
|
||||
Arena *current_path_arena;
|
||||
String8 current_path;
|
||||
@@ -1452,7 +1447,6 @@ internal D_CfgTable *d_cfg_table(void);
|
||||
internal String8 d_cfg_escaped_from_raw_string(Arena *arena, String8 string);
|
||||
internal String8 d_cfg_raw_from_escaped_string(Arena *arena, String8 string);
|
||||
internal String8List d_cfg_strings_from_core(Arena *arena, String8 root_path, D_CfgSrc source);
|
||||
internal void d_cfg_push_write_string(D_CfgSrc src, String8 string);
|
||||
|
||||
//- rjf: current path
|
||||
internal String8 d_current_path(void);
|
||||
|
||||
Reference in New Issue
Block a user