aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-07-06 19:11:39 +0100
committerMatthew Wild <mwild1@gmail.com>2015-07-06 19:11:39 +0100
commitff7b482c6d6005acde8da8a6d586f95fd477a555 (patch)
tree99f620b4027a7f957b8ac884a77873c4a7de4162 /net/dns.lua
parent855cb99f3c81b03fdeb27896d59ed9b66900ae02 (diff)
downloadprosody-ff7b482c6d6005acde8da8a6d586f95fd477a555.tar.gz
prosody-ff7b482c6d6005acde8da8a6d586f95fd477a555.zip
net.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates dns.resolver()
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua11
1 files changed, 0 insertions, 11 deletions
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);