about summary refs log tree commit diff stats
path: root/apps/tile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-02-19 02:39:22 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-02-19 02:39:22 -0800
commit446a6704cbe875326920bb6cc287ebdb752dbc41 (patch)
treedb4638119fde6444334efd2cf8a2056fbaed4119 /apps/tile
parent3b1686b610dad6d5b15cb7a04a4459218aa76dc0 (diff)
downloadmu-446a6704cbe875326920bb6cc287ebdb752dbc41.tar.gz
7757
Diffstat (limited to 'apps/tile')
-rw-r--r--apps/tile/word.mu15
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/tile/word.mu b/apps/tile/word.mu
index 224c876c..b4f5000b 100644
--- a/apps/tile/word.mu
+++ b/apps/tile/word.mu
@@ -111,21 +111,6 @@ fn word-length _self: (addr word) -> _/eax: int {
   return result
 }
 
-fn first-word _in: (addr handle word), out: (addr handle word) {
-  var curr-ah/esi: (addr handle word) <- copy _in
-  var curr/eax: (addr word) <- lookup *curr-ah
-  var prev/edi: (addr handle word) <- copy 0
-  {
-    prev <- get curr, prev
-    var curr/eax: (addr word) <- lookup *prev
-    compare curr, 0
-    break-if-=
-    copy-object prev, curr-ah
-    loop
-  }
-  copy-object curr-ah, out
-}
-
 fn final-word _in: (addr handle word), out: (addr handle word) {
   var curr-h: (handle word)
   var curr-ah/esi: (addr handle word) <- address curr-h