From 4c080d176a0c15ff6b2ed3b790ca482945fac565 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 8 Oct 2013 00:34:40 +0300 Subject: [PATCH 1/1] Removed ServerInfo helper. --- stglibs/srvconf.lib/servconf.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 2970cf39..5503dab1 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -45,8 +45,6 @@ public: IMPL(const std::string & server, uint16_t port, const std::string & login, const std::string & password); - int ServerInfo(SERVER_INFO::CALLBACK f, void * data); - const std::string & GetStrError() const; static void Start(void * data, const char * el, const char ** attr); static void End(void * data, const char * el); @@ -117,7 +115,7 @@ return pImpl->Exec(request, f, data); int SERVCONF::ServerInfo(SERVER_INFO::CALLBACK f, void * data) { - return pImpl->ServerInfo(f, data); +return Exec("", f, data); } int SERVCONF::CheckUser(const std::string & login, const std::string & password, CHECK_USER::CALLBACK f, void * data) @@ -139,11 +137,6 @@ parser = XML_ParserCreate(NULL); nt.SetRxCallback(this, AnsRecv); } //----------------------------------------------------------------------------- -int SERVCONF::IMPL::ServerInfo(SERVER_INFO::CALLBACK f, void * data) -{ -return Exec("", f, data); -} -//----------------------------------------------------------------------------- void SERVCONF::IMPL::Start(void * data, const char * el, const char ** attr) { PARSER * currParser = static_cast(data); -- 2.44.2