aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-11 02:08:41 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-11 02:08:41 -0800
commitc575ad10419f63e91c1c36814a03c67ff56d576d (patch)
treed253144db43986a4f118fd326915a3041933ab4a
parent8c1da9a6c3267310f5e8eedabaef9406d6ed46e9 (diff)
Rebuilt.
-rw-r--r--nomsu.lua39
1 files changed, 0 insertions, 39 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 7fa84a1..31bbe28 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -392,45 +392,6 @@ do
end
return code:gsub("\n", "\n" .. (" "):rep(levels))
end,
- assert_permission = function(self, stub)
- local fn_def = self.defs[stub]
- if not (fn_def) then
- self:error("Undefined function: " .. tostring(fn_name))
- end
- local whiteset = fn_def.whiteset
- if whiteset == nil then
- return true
- end
- local _list_0 = self.callstack
- for _index_0 = 1, #_list_0 do
- local caller = _list_0[_index_0]
- if caller ~= "#macro" and whiteset[caller[1]] then
- return true
- end
- end
- return self:error("You do not have the authority to call: " .. tostring(stub))
- end,
- check_permission = function(self, fn_def)
- if getmetatable(fn_def) ~= functiondef_mt then
- local fn_name = fn_def
- fn_def = self.defs[fn_name]
- if fn_def == nil then
- self:error("Undefined function: " .. tostring(fn_name))
- end
- end
- local whiteset = fn_def.whiteset
- if whiteset == nil then
- return true
- end
- local _list_0 = self.callstack
- for _index_0 = 1, #_list_0 do
- local caller = _list_0[_index_0]
- if caller ~= "#macro" and whiteset[caller[1]] then
- return true
- end
- end
- return false
- end,
parse = function(self, str, filename)
self:assert(type(filename) == "string", "Bad filename type: " .. tostring(type(filename)))
if self.debug then