summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-06-17 08:13:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-06-17 08:13:17 (GMT)
commitd46097d2c30a0eafde1f1c9d98cb3b20896c4682 (patch)
treef0ceae2acae5812676b708caed23f023301e737a /Swiften/Network/CachingNameOnlyDomainNameResolver.cpp
parentc4b4eeee2433c3b16ed9390d1b7487c2c98aaee3 (diff)
downloadswift-contrib-d46097d2c30a0eafde1f1c9d98cb3b20896c4682.zip
swift-contrib-d46097d2c30a0eafde1f1c9d98cb3b20896c4682.tar.bz2
Remove unused functions from caching resolver.
Diffstat (limited to 'Swiften/Network/CachingNameOnlyDomainNameResolver.cpp')
-rw-r--r--Swiften/Network/CachingNameOnlyDomainNameResolver.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/Swiften/Network/CachingNameOnlyDomainNameResolver.cpp b/Swiften/Network/CachingNameOnlyDomainNameResolver.cpp
index a83bebd..8a2936a 100644
--- a/Swiften/Network/CachingNameOnlyDomainNameResolver.cpp
+++ b/Swiften/Network/CachingNameOnlyDomainNameResolver.cpp
@@ -9,8 +9,8 @@
#include <boost/smart_ptr/make_shared.hpp>
namespace Swift {
-CachingNameOnlyDomainNameResolver::CachingNameOnlyDomainNameResolver(DomainNameResolver* realResolver, EventLoop* eventLoop) : realResolver(realResolver) {
- staticResolver = boost::make_shared<StaticDomainNameResolver>(eventLoop);
+
+CachingNameOnlyDomainNameResolver::CachingNameOnlyDomainNameResolver(DomainNameResolver* realResolver, EventLoop*) : realResolver(realResolver) {
}
CachingNameOnlyDomainNameResolver::~CachingNameOnlyDomainNameResolver() {
@@ -18,15 +18,13 @@ CachingNameOnlyDomainNameResolver::~CachingNameOnlyDomainNameResolver() {
}
DomainNameServiceQuery::ref CachingNameOnlyDomainNameResolver::createServiceQuery(const std::string& name) {
- return staticResolver->createServiceQuery(name);
+ //FIXME: Cache
+ return realResolver->createServiceQuery(name);
}
DomainNameAddressQuery::ref CachingNameOnlyDomainNameResolver::createAddressQuery(const std::string& name) {
- return realResolver->createAddressQuery(name);
-}
-
-void CachingNameOnlyDomainNameResolver::handleAddressQueryResult(const std::string hostname, const std::vector<HostAddress>& address, boost::optional<DomainNameResolveError> error) {
//FIXME: Cache
+ return realResolver->createAddressQuery(name);
}
}