]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove unused function
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Apr 2018 17:47:07 +0000 (18:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Apr 2018 17:47:07 +0000 (18:47 +0100)
src/plugins/lua/neural.lua

index 89f003b2a70907228ff1c611b56492fd17f3b5f6..04b732472dea32aa43fb065f658f263a3c3504dc 100644 (file)
@@ -960,21 +960,6 @@ else
     priority = 6,
     callback = ann_scores_filter
   })
-
-  local function deepcopy(orig)
-    local orig_type = type(orig)
-    local copy
-    if orig_type == 'table' then
-      copy = {}
-      for orig_key, orig_value in next, orig, nil do
-        copy[deepcopy(orig_key)] = deepcopy(orig_value)
-      end
-      setmetatable(copy, deepcopy(getmetatable(orig)))
-    else -- number, string, boolean, etc
-      copy = orig
-    end
-    return copy
-  end
   for k,r in pairs(rules) do
     local def_rules = lua_util.override_defaults(default_options, r)
     def_rules['redis'] = redis_params