From b366c77b6cae76d22078f8bb63bdac9de68b05d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Wed, 15 Nov 2017 21:20:11 +0000 Subject: remove duplicate unescape MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/labitrackd.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'web') diff --git a/web/labitrackd.lua b/web/labitrackd.lua index df84bdf..77d15b5 100755 --- a/web/labitrackd.lua +++ b/web/labitrackd.lua @@ -274,14 +274,6 @@ GET('/recent.json', function(req, res) add_json(res, assert(db:run('recent'))) end) -local function unescape(s) - s = string.gsub(s, "+", " ") - s = string.gsub(s, "%%(%x%x)", function (h) - return string.char(tonumber(h, 16)) - end) - return s -end - local function save_or_update(req, res) set_json_nocache_headers(res) -- cgit v1.2.1