X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fmemcached.h;h=915d3fa8a97cb15828ceb7d534d235e0f5832856;hb=19d7df5119c3f07370f58857f4d916cd5de398ea;hp=8a0b17955a229a8f75560c6e13c8a2a909b22897;hpb=d0f9a32dd1442ba083972642d6fed5cd59bce583;p=m6w6%2Flibmemcached diff --git a/libtest/memcached.h b/libtest/memcached.h index 8a0b1795..915d3fa8 100644 --- a/libtest/memcached.h +++ b/libtest/memcached.h @@ -49,25 +49,3 @@ libtest::Server *build_memcached_sasl(const std::string& hostname, const in_port libtest::Server *build_memcached_sasl_socket(const std::string& socket_file, const in_port_t try_port, const std::string& username, const std::string& password); } - -#if defined(LIBMEMCACHED) && LIBMEMCACHED -bool operator== (const memcached_st&c memc, const memcached_return_t rc) -{ - if (memcached_last_error(&memc) == rc) - { - return true; - } - - return false; -} - -bool operator!= (const memcached_st&c memc, const memcached_return_t rc) -{ - if (memcached_last_error(&memc) != rc) - { - return true; - } - - return false; -} -#endif