aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux12
1 files changed, 1 insertions, 11 deletions
diff --git a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
index 9e7dc7422..2c0dfec17 100644
--- a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
@@ -207,21 +207,11 @@
(lua.return! none)
(lua.return! (some "char"))))))
-(runtime: (text//hash input)
- (lua.block! (list (lua.local! "hash" (#.Some (lua.int 0)))
- (lua.for-step! "idx" (lua.int 1) (lua.apply "string.len" (list input)) (lua.int 1)
- (lua.set! "hash" (|> "hash"
- (lua.bit-shl (lua.int 5))
- (lua.- "hash")
- (lua.+ (lua.apply "string.byte" (list input "idx"))))))
- (lua.return! "hash"))))
-
(def: runtime//text
Runtime
(format @@text//index
@@text//clip
- @@text//char
- @@text//hash))
+ @@text//char))
(def: (check-index-out-of-bounds array idx body!)
(-> Expression Expression Statement Statement)