Software /
code /
prosody
Diff
tools/ejabberdsql2prosody.lua @ 7565:2ef93ba18336
ejabberdsql2prosody: remove unused function pushback() [luacheck]
The same function seems to exist in tools/erlparse.lua, also unused.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 12 Aug 2016 13:29:27 +0800 |
parent | 5993:ef11b8bab405 |
child | 7566:e4f9c192b797 |
line wrap: on
line diff
--- a/tools/ejabberdsql2prosody.lua Fri Aug 12 01:38:40 2016 +0200 +++ b/tools/ejabberdsql2prosody.lua Fri Aug 12 13:29:27 2016 +0800 @@ -42,10 +42,6 @@ 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;