Removal of old TODOs and code, rewording of TODOs.

This commit is contained in:
Fang 2017-06-22 18:08:14 -07:00
parent f04b142bee
commit 4aed59fd14

View File

@ -111,15 +111,6 @@
[~ ..prep(+<+ u.old)] [~ ..prep(+<+ u.old)]
:: ::
::> || ::> ||
::> || %utility
::> ||
::> small utility functions.
::+|
::
::TODO remove, only used once.
++ strap |*({k/* v/*} (~(put by *(map _k _v)) k v)) ::< map key-value pair
::
::> ||
::> || %engines ::> || %engines
::> || ::> ||
::> main cores. ::> main cores.
@ -524,7 +515,7 @@
(so-hear:sor & [our.bol nom.dif] dif.dif) (so-hear:sor & [our.bol nom.dif] dif.dif)
:: ::
$new $new
::TODO shouldn't this act the same as $burden in ++ta-take? ::TODO? shouldn't this act the same as $burden in ++ta-take?
=< so-done =< so-done
%- ~(so-hear so nom.dif ~ (fall (~(get by stories) nom.dif) *story)) %- ~(so-hear so nom.dif ~ (fall (~(get by stories) nom.dif) *story))
[& [our.bol nom.dif] %bear ~ [cof.dif.dif ~] [~ ~]] [& [our.bol nom.dif] %bear ~ [cof.dif.dif ~] [~ ~]]
@ -544,7 +535,7 @@
|= {num/@ud who/partner fal/(unit tang)} |= {num/@ud who/partner fal/(unit tang)}
^+ +> ^+ +>
=+ oot=(~(get by q.outbox) num) =+ oot=(~(get by q.outbox) num)
?~ oot ~&([%ta-repeat-none num] +>.$) ::TODO crash? ?~ oot ~&([%ta-repeat-none num] +>.$) ::TODO? crash?
=. aud.u.oot =. aud.u.oot
=+ olg=(~(got by aud.u.oot) who) =+ olg=(~(got by aud.u.oot) who)
%+ ~(put by aud.u.oot) who %+ ~(put by aud.u.oot) who
@ -719,7 +710,7 @@
::TODO cleanup ::TODO cleanup
|= {bur/? src/circle dif/diff-story} |= {bur/? src/circle dif/diff-story}
^+ +> ^+ +>
::TODO? these checks are still important, because ::TODO? are these checks still important?
:: when things are slow we may get diffs from :: when things are slow we may get diffs from
:: things we already unsubscribed from, right? :: things we already unsubscribed from, right?
~? ?! ?| (~(has in src.shape) [%& src]) ~? ?! ?| (~(has in src.shape) [%& src])
@ -727,9 +718,6 @@
== ==
[%unexpected-rumor-source nom -.dif src] [%unexpected-rumor-source nom -.dif src]
?- -.dif ?- -.dif
::TODO we check for foreigns here, but they should just not get sent
:: in the first place. update ++-change or whatever!
:: (we don't care for remote remotes, etc.)
$new ?: =(src so-cir) $new ?: =(src so-cir)
(so-config-full ~ cof.dif) (so-config-full ~ cof.dif)
$(dif [%config src %full cof.dif]) $(dif [%config src %full cof.dif])
@ -743,15 +731,15 @@
?: =(src cir.dif) ?: =(src cir.dif)
(so-delta-our dif) (so-delta-our dif)
:: remotes of remotes are not. :: remotes of remotes are not.
~& %unexpected-ignoring-remote-config ~& %ignoring-remote-config
~? =(src so-cir) %but-src-is-us ~? =(src so-cir) %but-src-is-us
+> +>
$status :: ignore foreign remotes. $status :: ignore foreign remotes.
?. |(=([%& src] pan.dif) =(src so-cir)) ?. |(=([%& src] pan.dif) =(src so-cir))
~& %unexpected-ignoring-remote-status ~& %ignoring-remote-status
+> +>
(so-delta-our dif) (so-delta-our dif)
$follow ~&(%follow-not-rumor +>) ::TODO crash? $follow ~&(%follow-not-rumor +>) ::TODO? crash?
$remove (so-delta-our %config src %remove ~) $remove (so-delta-our %config src %remove ~)
== ==
:: ::
@ -789,13 +777,9 @@
|= t/telegram |= t/telegram
=- t(aud.tot -) =- t(aud.tot -)
=/ oud =/ oud
(~(get by aud.tot.t) [%& (above our.bol) nom]) (~(got by aud.tot.t) [%& (above our.bol) nom])
?~ oud ::TODO seems like it should never occur? =+ (~(del by aud.tot.t) [%& (above our.bol) nom])
~& %unexpected-parent-not-audience (~(put by -) [%& our.bol nom] oud)
aud.tot.t
=. aud.tot.t
(~(del by aud.tot.t) [%& (above our.bol) nom])
(~(put by aud.tot.t) [%& our.bol nom] u.oud)
:: burden flag :: burden flag
(so-delta-our %burden &) (so-delta-our %burden &)
:: ::
@ -1017,17 +1001,8 @@
=. aud.tot.gam =. aud.tot.gam
::> if we are in the audience, mark as received. ::> if we are in the audience, mark as received.
=+ ole=(~(get by aud.tot.gam) so-pan) =+ ole=(~(get by aud.tot.gam) so-pan)
?^ ole (~(put by aud.tot.gam) so-pan -.u.ole %received)
::TODO can we delete the below? seems old federation?
::TODO pass src through explicitly instead of
:: relying on src.bol.
::TODO? ^ why?
=+ ole=(~(get by aud.tot.gam) [%& src.bol nom])
?~ ole aud.tot.gam ?~ ole aud.tot.gam
::TODO below line is old federation, but should work for our current (~(put by aud.tot.gam) so-pan p.u.ole %received)
:: use case, right? why doesn't it?
=. aud.tot.gam (~(del by aud.tot.gam) [%& src.bol nom])
(~(put by aud.tot.gam) so-pan -.u.ole %received)
(so-delta-our %grams [gam ~]) (so-delta-our %grams [gam ~])
:: ::
::> || ::> ||