Skip to content

Commit

Permalink
choo: remove unused got:by, add missing file error (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryjm authored Jan 6, 2025
1 parent 006bb72 commit ceba723
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apps/choo/bootstrap/kernel.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
|= [suf=entry dir=(map path cord)]
^- cord
?~ tex.suf
~| "file not found: {<pat.suf>}"
(~(got by dir) pat.suf)
u.tex.suf
::
Expand Down Expand Up @@ -363,17 +364,14 @@
=^ new-lib=(list import-graph) cache
%^ spin lib.rile cache
|= [raut cache=(map path import-graph)]
=/ c (~(got by dir) pax)
(make-import-graph face [pax ~] +(depth) cache dir)
=^ new-raw=(list import-graph) cache
%^ spin raw.rile cache
|= [raut cache=(map path import-graph)]
=/ c (~(got by dir) pax)
(make-import-graph face [pax ~] +(depth) cache dir)
=^ new-bar=(list import-graph) cache
%^ spin bar.rile cache
|= [raut cache=(map path import-graph)]
=/ c (~(got by dir) pax)
(make-import-graph face [pax ~] +(depth) cache dir)
=/ graph=import-graph
:* pat.suf
Expand Down Expand Up @@ -413,7 +411,6 @@
:: we must always make hoon.hoon available to each `hoon.graph`
:: in case it's not available on account of being hidden behind a face in other dependencies
::
:: TODO make sure there are no bunted vases in here
=- (roll - |=([v=(trap vase) a=(trap vase)] (slew a v)))
%+ murn ~[lib-all sur-all raw-all bar-all honc]
|= dep=(trap vase)
Expand Down Expand Up @@ -484,13 +481,6 @@
=/ end (rear pax)
!=(~ (find ".hoon" (trip end)))
::
++ get-hoon
:: produces the hoon source at the given path
|= [pax=path dir=(map path cord)]
^- tape
%- trip
(~(got by dir) pax)
::
++ is-graph-leaf
|= import-graph
^- ?
Expand Down

0 comments on commit ceba723

Please sign in to comment.