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
commit0bbcab4e51651d749abe6bf55bb6fb1f5d046243 (patch)
tree4f680959de29f797272fe31cc0635fc2b1d43524 /tools
parentmod_s2s: Set read mode for s2sout sockets to the same as s2sins (diff)
downloadprosody-0bbcab4e51651d749abe6bf55bb6fb1f5d046243.tar.xz
prosody-0bbcab4e51651d749abe6bf55bb6fb1f5d046243.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 69c8cfe81..a9d624aab 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;