From: Maxim Mamontov Date: Sun, 18 Jan 2015 18:33:50 +0000 (+0200) Subject: Removed unused class fields. X-Git-Tag: 2.409~212 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/e10fea17524e7c5487de8cd08fb01f922e05cc05?ds=inline Removed unused class fields. --- diff --git a/stglibs/srvconf.lib/include/stg/servconf.h b/stglibs/srvconf.lib/include/stg/servconf.h index dbbe2001..bb5491fe 100644 --- a/stglibs/srvconf.lib/include/stg/servconf.h +++ b/stglibs/srvconf.lib/include/stg/servconf.h @@ -130,7 +130,6 @@ private: RecvChgUserCb_t RecvChgUserCb; void * chgUserCbData; int depth; - bool error; }; //----------------------------------------------------------------------------- class PARSER_CHECK_USER: public PARSER @@ -145,7 +144,6 @@ private: RecvCheckUserCb_t RecvCheckUserCb; void * checkUserCbData; int depth; - bool error; }; //----------------------------------------------------------------------------- class PARSER_GET_USERS: public PARSER @@ -164,7 +162,6 @@ private: void * userDataCb; USERDATA user; int depth; - bool error; }; //----------------------------------------------------------------------------- class PARSER_GET_USER: public PARSER @@ -223,7 +220,6 @@ private: RecvSendMessageCb_t RecvSendMessageCb; void * sendMessageCbData; int depth; - bool error; }; //----------------------------------------------------------------------------- class PARSER_AUTH_BY: public PARSER @@ -288,7 +284,6 @@ private: PARSER_SEND_MESSAGE parserSendMessage; NETTRANSACT nt; - int parseDepth; std::string errorMsg; int error; diff --git a/stglibs/srvconf.lib/parser.cpp b/stglibs/srvconf.lib/parser.cpp index 284e1127..40557e3c 100644 --- a/stglibs/srvconf.lib/parser.cpp +++ b/stglibs/srvconf.lib/parser.cpp @@ -45,9 +45,7 @@ using namespace std; PARSER_GET_USERS::PARSER_GET_USERS() : RecvUserDataCb(NULL), userDataCb(NULL), - user(), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -387,9 +385,7 @@ userDataCb = data; PARSER_GET_USER::PARSER_GET_USER() : RecvUserDataCb(NULL), userDataCb(NULL), - user(), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -665,9 +661,7 @@ userDataCb = data; PARSER_GET_SERVER_INFO::PARSER_GET_SERVER_INFO() : RecvServerInfoDataCb(NULL), serverInfoDataCb(NULL), - depth(0), - error(false), - serverInfo() + depth(0) { } //----------------------------------------------------------------------------- @@ -825,9 +819,7 @@ if (strcmp(attr[0], "value") == 0) PARSER_AUTH_BY::PARSER_AUTH_BY() : RecvAuthByDataCb(NULL), authByDataCb(NULL), - depth(0), - error(false), - list() + depth(0) { } //----------------------------------------------------------------------------- @@ -877,8 +869,7 @@ authByDataCb = data; PARSER_CHG_USER::PARSER_CHG_USER() : RecvChgUserCb(NULL), chgUserCbData(NULL), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -927,8 +918,7 @@ chgUserCbData = data; PARSER_CHECK_USER::PARSER_CHECK_USER() : RecvCheckUserCb(NULL), checkUserCbData(NULL), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -970,8 +960,7 @@ checkUserCbData = data; PARSER_SEND_MESSAGE::PARSER_SEND_MESSAGE() : RecvSendMessageCb(NULL), sendMessageCbData(NULL), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 0ca3028c..1b13de6d 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -92,7 +92,6 @@ sc->End(el); //----------------------------------------------------------------------------- SERVCONF::SERVCONF() : currParser(NULL), - parseDepth(0), error(0), RecvUserDataCb(NULL), RecvGetUserDataCb(NULL),