From 25feb052b2a14ec1f3a8b89f0c244b43daefc485 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 6 Jul 2015 19:11:39 +0100 Subject: net.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates dns.resolver() --- net/dns.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'net/dns.lua') diff --git a/net/dns.lua b/net/dns.lua index 037f3ec6..992f3986 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -213,15 +213,6 @@ function cache_metatable.__tostring(cache) end -function resolver:new() -- - - - - - - - - - - - - - - - - - - - - resolver - local r = { active = {}, cache = {}, unsorted = {} }; - setmetatable(r, resolver); - setmetatable(r.cache, cache_metatable); - setmetatable(r.unsorted, { __mode = 'kv' }); - return r; -end - - -- packet layer -------------------------------------------------- packet layer @@ -1054,8 +1045,6 @@ end function dns.resolver () -- - - - - - - - - - - - - - - - - - - - - resolver - -- this function seems to be redundant with resolver.new () - local r = { active = {}, cache = {}, unsorted = {}, wanted = {}, best_server = 1 }; setmetatable (r, resolver); setmetatable (r.cache, cache_metatable); -- cgit v1.2.3