From b624b94a228d476afc64c865de330fa47be84e55 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Mon, 18 Apr 2016 22:47:19 -0400 Subject: [PATCH] decoder: drops unused 'expected' utility method --- lua/json/decode/util.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lua/json/decode/util.lua b/lua/json/decode/util.lua index b90c0b7..2493bf3 100644 --- a/lua/json/decode/util.lua +++ b/lua/json/decode/util.lua @@ -39,16 +39,6 @@ local function unexpected() local msg = "unexpected character" return build_report(msg) end -local function expected(...) - local items = {...} - local msg - if #items > 1 then - msg = "expected one of '" .. table_concat(items, "','") .. "'" - else - msg = "expected '" .. items[1] .. "'" - end - return build_report(msg) -end local function denied(item, option) local msg if option then @@ -113,7 +103,6 @@ end local util = { unexpected = unexpected, - expected = expected, denied = denied, ascii_space = ascii_space, unicode_space = unicode_space, -- 2.11.4.GIT