From 507c578a87f08f11514b74f222a59ecbb6f8103b Mon Sep 17 00:00:00 2001 From: chronolaw Date: Wed, 16 Oct 2024 20:59:24 +0800 Subject: [PATCH] remove unused `remove_nulls` in off/init.lua --- kong/db/strategies/off/init.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kong/db/strategies/off/init.lua b/kong/db/strategies/off/init.lua index 34877097eb6f..1ab27cddf56e 100644 --- a/kong/db/strategies/off/init.lua +++ b/kong/db/strategies/off/init.lua @@ -213,21 +213,6 @@ local function select_by_field(self, field, value, options) end ---[[ -local function remove_nulls(tbl) - for k,v in pairs(tbl) do - if v == null then - tbl[k] = nil - - elseif type(v) == "table" then - tbl[k] = remove_nulls(v) - end - end - return tbl -end ---]] - - do local unsupported = function(operation) return function(self)