From: Brian Aker Date: Mon, 9 Jul 2012 21:14:49 +0000 (-0700) Subject: Remove dead local call. X-Git-Tag: 1.0.10~5^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0fa4629adf1b793f0faddf39a4237a5d620ca1da;p=awesomized%2Flibmemcached Remove dead local call. --- diff --git a/libmemcached/instance.hpp b/libmemcached/instance.hpp index 1c614ab1..e8d44058 100644 --- a/libmemcached/instance.hpp +++ b/libmemcached/instance.hpp @@ -53,8 +53,6 @@ memcached_return_t memcached_instance_push(memcached_st *ptr, const org::libmemc memcached_server_st *memcached_instance_2_server(org::libmemcached::Instance* source); -uint32_t memcached_instance_count(const memcached_st* self); - uint32_t memcached_instance_response_count(const org::libmemcached::Instance* self); void __instance_free(org::libmemcached::Instance *); diff --git a/libmemcached/server_list.cc b/libmemcached/server_list.cc index 57d5c7fe..4b3c6293 100644 --- a/libmemcached/server_list.cc +++ b/libmemcached/server_list.cc @@ -126,13 +126,6 @@ uint32_t memcached_instance_list_count(const memcached_st* self) : self->number_of_hosts; } -uint32_t memcached_instance_count(const memcached_st* self) -{ - return (self == NULL) - ? 0 - : self->number_of_hosts; -} - void memcached_instance_set(memcached_st* memc, org::libmemcached::Instance* list) { memc->servers= list; diff --git a/libmemcached/server_list.hpp b/libmemcached/server_list.hpp index 2a8052fa..95920194 100644 --- a/libmemcached/server_list.hpp +++ b/libmemcached/server_list.hpp @@ -38,8 +38,6 @@ org::libmemcached::Instance* memcached_instance_list(const memcached_st *); -uint32_t memcached_instance_count(const memcached_st*); - uint32_t memcached_instance_list_count(const memcached_st*); uint32_t memcached_servers_set_count(memcached_server_list_st servers, uint32_t count); diff --git a/libtest/server_container.cc b/libtest/server_container.cc index 2bea1ad9..6973937b 100644 --- a/libtest/server_container.cc +++ b/libtest/server_container.cc @@ -99,7 +99,6 @@ Server* server_startup_st::pop_server() // host_to_shutdown => host number to shutdown in array bool server_startup_st::shutdown(uint32_t host_to_shutdown) { - Error << servers.size() << " > " << host_to_shutdown; if (servers.size() > host_to_shutdown) { Server* tmp= servers[host_to_shutdown];