aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-08-12 13:29:27 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-08-12 13:29:27 +0800
commit268ca4db81552e138b66fd1f1e4dfd3b32aec19b (patch)
tree4f680959de29f797272fe31cc0635fc2b1d43524 /tools
parent3429c471cfff6815c0bdb579b850b5ad6476bbee (diff)
downloadprosody-268ca4db81552e138b66fd1f1e4dfd3b32aec19b.tar.gz
prosody-268ca4db81552e138b66fd1f1e4dfd3b32aec19b.zip
ejabberdsql2prosody: remove unused function pushback() [luacheck]
The same function seems to exist in tools/erlparse.lua, also unused.
Diffstat (limited to 'tools')
-rw-r--r--tools/ejabberdsql2prosody.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua
index 69c8cfe8..a9d624aa 100644
--- a/tools/ejabberdsql2prosody.lua
+++ b/tools/ejabberdsql2prosody.lua
@@ -42,10 +42,6 @@ local function read(expected)
if expected and ch ~= expected then error("expected: "..expected.."; got: "..(ch or "nil").." on line "..line); end
return ch;
end
-local function pushback(ch)
- if last then error(); end
- last = ch;
-end
local function peek()
if not last then last = read(); end
return last;