aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-12 16:34:46 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-12 16:34:46 -0800
commit28badba29a084dfcb1c680045a0d696ccf41d2c6 (patch)
treef0dd4995466f72d77dc9cb5d1c11de4eb9900d9e
parent4b6d35aa9f605a8a1147ce514cb7180c38dd2ca7 (diff)
Deleted some dead code.
-rwxr-xr-xnomsu.moon2
1 files changed, 0 insertions, 2 deletions
diff --git a/nomsu.moon b/nomsu.moon
index ac5fa32..c69853c 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -18,13 +18,11 @@ new_uuid = require 'uuid'
colors = setmetatable({}, {__index:->""})
colored = setmetatable({}, {__index:(_,color)-> ((msg)-> colors[color]..(msg or '')..colors.reset)})
{:insert, :remove, :concat} = table
---pcall = (fn,...)-> true, fn(...)
if _VERSION == "Lua 5.1"
xp = xpcall
xpcall = (f, errhandler, ...)->
args = {n:select("#", ...), ...}
return xp((...)-> f(unpack(args,1,args.n))), errhandler
---pcall = (fn, ...) -> xpcall(fn, debug.traceback, ...)
-- TODO:
-- consider non-linear codegen, rather than doing thunks for things like comprehensions