diff options
author | Anton Shestakov <av6@dwimlabs.net> | 2016-08-12 13:29:27 +0800 |
---|---|---|
committer | Anton Shestakov <av6@dwimlabs.net> | 2016-08-12 13:29:27 +0800 |
commit | 0bbcab4e51651d749abe6bf55bb6fb1f5d046243 (patch) | |
tree | 4f680959de29f797272fe31cc0635fc2b1d43524 | |
parent | ef3f3b099fd0e7b0a7ac2705523ad719ce8a0a33 (diff) | |
download | prosody-0bbcab4e51651d749abe6bf55bb6fb1f5d046243.tar.gz prosody-0bbcab4e51651d749abe6bf55bb6fb1f5d046243.zip |
ejabberdsql2prosody: remove unused function pushback() [luacheck]
The same function seems to exist in tools/erlparse.lua, also unused.
-rw-r--r-- | tools/ejabberdsql2prosody.lua | 4 |
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; |