1
1
mirror of https://github.com/urbit/shrub.git synced 2025-01-05 02:57:18 +03:00

u3: removes obsolete members from u3_arvo

This commit is contained in:
Joe Bryan 2020-11-19 23:02:47 -08:00
parent d4bca19c87
commit c9ae9b6ffb
5 changed files with 7 additions and 39 deletions
pkg/urbit

View File

@ -7,12 +7,9 @@
/* u3v_arvo: modern arvo structure. /* u3v_arvo: modern arvo structure.
*/ */
typedef struct _u3v_arvo { typedef struct _u3v_arvo {
c3_d ent_d; // event number c3_d eve_d; // event number
u3_noun yot; // cached gates u3_noun yot; // cached gates
u3_noun now; // current time, as noun u3_noun now; // current time
u3_noun wen; // current time, as text, XX remove
u3_noun sev_l; // instance number
u3_noun sen; // instance string
u3_noun roc; // kernel core u3_noun roc; // kernel core
} u3v_arvo; } u3v_arvo;
@ -59,11 +56,6 @@
u3_noun u3_noun
u3v_wish(const c3_c* str_c); u3v_wish(const c3_c* str_c);
/* u3v_numb(): set the instance number.
*/
void
u3v_numb(void);
/* u3v_time(): set the reck time. /* u3v_time(): set the reck time.
*/ */
void void

View File

@ -1691,15 +1691,7 @@ u3m_boot(c3_c* dir_c)
u3j_ream(); u3j_ream();
u3n_ream(); u3n_ream();
// XX unused, removed return u3A->eve_d;
//
// u3z() temporarily preserved to avoid leaking
// checkpointed values
//
u3z(u3A->wen);
u3A->wen = 0;
return u3A->ent_d;
} }
else { else {
/* Basic initialization. /* Basic initialization.

View File

@ -376,7 +376,7 @@ _cu_realloc(FILE* fil_u, ur_root_t** tor_u, ur_nvec_t* doc_u)
// stash event number // stash event number
// //
c3_d eve_d = u3A->ent_d; c3_d eve_d = u3A->eve_d;
// reallocate kernel and cold jet state // reallocate kernel and cold jet state
// //
@ -412,7 +412,7 @@ _cu_realloc(FILE* fil_u, ur_root_t** tor_u, ur_nvec_t* doc_u)
// restore event number // restore event number
// //
u3A->ent_d = eve_d; u3A->eve_d = eve_d;
// mark all pages dirty // mark all pages dirty
// //
@ -875,7 +875,7 @@ u3u_uncram(c3_c* dir_c, c3_d eve_d)
// restore event number // restore event number
// //
u3A->ent_d = eve_d; u3A->eve_d = eve_d;
// mark all pages dirty // mark all pages dirty
// //

View File

@ -166,16 +166,6 @@ u3v_time(u3_noun now)
u3A->now = now; u3A->now = now;
} }
/* u3v_numb(): set the instance number.
*/
void
u3v_numb()
{
u3A->sev_l = u3r_mug(u3A->now);
u3z(u3A->sen);
u3A->sen = _cv_scot(u3nc(c3__uv, u3A->sev_l));
}
#if 0 #if 0
/* _cv_time_bump(): advance the reck time by a small increment. /* _cv_time_bump(): advance the reck time by a small increment.
*/ */
@ -317,8 +307,6 @@ u3v_mark(FILE* fil_u)
tot_w += u3a_maid(fil_u, " kernel", u3a_mark_noun(arv_u->roc)); tot_w += u3a_maid(fil_u, " kernel", u3a_mark_noun(arv_u->roc));
tot_w += u3a_maid(fil_u, " date", u3a_mark_noun(arv_u->now)); tot_w += u3a_maid(fil_u, " date", u3a_mark_noun(arv_u->now));
tot_w += u3a_maid(fil_u, " formatted date", u3a_mark_noun(arv_u->wen));
tot_w += u3a_maid(fil_u, " instance string", u3a_mark_noun(arv_u->sen));
tot_w += u3a_maid(fil_u, " wish cache", u3a_mark_noun(arv_u->yot)); tot_w += u3a_maid(fil_u, " wish cache", u3a_mark_noun(arv_u->yot));
return u3a_maid(fil_u, "total arvo stuff", tot_w); return u3a_maid(fil_u, "total arvo stuff", tot_w);
} }
@ -347,14 +335,10 @@ u3v_rewrite_compact()
u3a_rewrite_noun(arv_u->roc); u3a_rewrite_noun(arv_u->roc);
u3a_rewrite_noun(arv_u->now); u3a_rewrite_noun(arv_u->now);
u3a_rewrite_noun(arv_u->wen);
u3a_rewrite_noun(arv_u->sen);
u3a_rewrite_noun(arv_u->yot); u3a_rewrite_noun(arv_u->yot);
arv_u->roc = u3a_rewritten_noun(arv_u->roc); arv_u->roc = u3a_rewritten_noun(arv_u->roc);
arv_u->now = u3a_rewritten_noun(arv_u->now); arv_u->now = u3a_rewritten_noun(arv_u->now);
arv_u->wen = u3a_rewritten_noun(arv_u->wen);
arv_u->sen = u3a_rewritten_noun(arv_u->sen);
arv_u->yot = u3a_rewritten_noun(arv_u->yot); arv_u->yot = u3a_rewritten_noun(arv_u->yot);
} }

View File

@ -416,7 +416,7 @@ _serf_sure_core(u3_serf* sef_u, u3_noun cor)
u3z(u3A->roc); u3z(u3A->roc);
u3A->roc = cor; u3A->roc = cor;
u3A->ent_d = sef_u->dun_d; u3A->eve_d = sef_u->dun_d;
sef_u->mug_l = u3r_mug(u3A->roc); sef_u->mug_l = u3r_mug(u3A->roc);
sef_u->mut_o = c3y; sef_u->mut_o = c3y;
} }