Software /
code /
prosody
Comparison
net/dns.lua @ 2574:7a12578aadb1
net.dns: Removed unused function.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Feb 2010 00:38:07 +0500 |
parent | 2573:60493186fef6 |
child | 2575:8f4d69940132 |
comparison
equal
deleted
inserted
replaced
2573:60493186fef6 | 2574:7a12578aadb1 |
---|---|
910 | 910 |
911 | 911 |
912 -- module api ------------------------------------------------------ module api | 912 -- module api ------------------------------------------------------ module api |
913 | 913 |
914 | 914 |
915 local function resolve(func, ...) -- - - - - - - - - - - - - - resolver_get | |
916 return func(dns._resolver, ...); | |
917 end | |
918 | |
919 | |
920 function dns.resolver () -- - - - - - - - - - - - - - - - - - - - - resolver | 915 function dns.resolver () -- - - - - - - - - - - - - - - - - - - - - resolver |
921 -- this function seems to be redundant with resolver.new () | 916 -- this function seems to be redundant with resolver.new () |
922 | 917 |
923 local r = { active = {}, cache = {}, unsorted = {}, wanted = {}, yielded = {}, best_server = 1 }; | 918 local r = { active = {}, cache = {}, unsorted = {}, wanted = {}, yielded = {}, best_server = 1 }; |
924 setmetatable (r, resolver); | 919 setmetatable (r, resolver); |