Changeset

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
parents 7561:ab8324d3b899
children 7566:e4f9c192b797
files tools/ejabberdsql2prosody.lua
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
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;