From: Maxim Mamontov <faust.madf@gmail.com>
Date: Mon, 7 Oct 2013 21:34:40 +0000 (+0300)
Subject: Removed ServerInfo helper.
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/4c080d176a0c15ff6b2ed3b790ca482945fac565?ds=inline

Removed ServerInfo helper.
---

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<SEND_MESSAGE::PARSER>(request, f, data);
 
 int SERVCONF::ServerInfo(SERVER_INFO::CALLBACK f, void * data)
 {
-    return pImpl->ServerInfo(f, data);
+return Exec<SERVER_INFO::PARSER>("<GetServerInfo/>", 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<SERVER_INFO::PARSER>("<GetServerInfo/>", f, data);
-}
-//-----------------------------------------------------------------------------
 void SERVCONF::IMPL::Start(void * data, const char * el, const char ** attr)
 {
 PARSER * currParser = static_cast<PARSER *>(data);