From f153849088716ef612c10d3ca03f5f49864af320 Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 19 Sep 2014 22:54:35 +0200 Subject: [PATCH] remove unused values & params --- inspect.lua | 1 - spec/inspect_spec.lua | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inspect.lua b/inspect.lua index a23aa63..4b90b3a 100644 --- a/inspect.lua +++ b/inspect.lua @@ -267,7 +267,6 @@ function Inspector:putTable(t) self:tabify() self:puts(' = ') self:putValue(mt) - count = count + 1 end end) diff --git a/spec/inspect_spec.lua b/spec/inspect_spec.lua index 744631e..b5b5898 100644 --- a/spec/inspect_spec.lua +++ b/spec/inspect_spec.lua @@ -260,13 +260,13 @@ describe( 'inspect', function() it('changes keys', function() local dict = {a = 1} - local changeKey = function(item, path) return item == 'a' and 'x' or item end + local changeKey = function(item) return item == 'a' and 'x' or item end assert.equals(inspect(dict, {process = changeKey}), '{\n x = 1\n}') end) it('nullifies keys', function() local dict = {a = 1, b = 2} - local removeA = function(item, path) return item ~= 'a' and item or nil end + local removeA = function(item) return item ~= 'a' and item or nil end assert.equals(inspect(dict, {process = removeA}), '{\n b = 2\n}') end)