ejabberdsql2prosody: remove unused function pushback() [luacheck]
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 12 Aug 2016 13:29:27 +0800
changeset 7568 2ef93ba18336
parent 7564 ab8324d3b899
child 7569 e4f9c192b797
ejabberdsql2prosody: remove unused function pushback() [luacheck] The same function seems to exist in tools/erlparse.lua, also unused.
tools/ejabberdsql2prosody.lua
--- 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;