]> git.stg.codes - stg.git/commitdiff
Removed unused class fields.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 18 Jan 2015 18:33:50 +0000 (20:33 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 18 Jan 2015 18:33:50 +0000 (20:33 +0200)
stglibs/srvconf.lib/include/stg/servconf.h
stglibs/srvconf.lib/parser.cpp
stglibs/srvconf.lib/servconf.cpp

index dbbe20013daa4087224221ea5c94e4c8c500d0d8..bb5491fe63c2f04d13e8abd97632dae36177cb9b 100644 (file)
@@ -130,7 +130,6 @@ private:
     RecvChgUserCb_t RecvChgUserCb;
     void * chgUserCbData;
     int depth;
     RecvChgUserCb_t RecvChgUserCb;
     void * chgUserCbData;
     int depth;
-    bool error;
 };
 //-----------------------------------------------------------------------------
 class PARSER_CHECK_USER: public PARSER
 };
 //-----------------------------------------------------------------------------
 class PARSER_CHECK_USER: public PARSER
@@ -145,7 +144,6 @@ private:
     RecvCheckUserCb_t RecvCheckUserCb;
     void * checkUserCbData;
     int depth;
     RecvCheckUserCb_t RecvCheckUserCb;
     void * checkUserCbData;
     int depth;
-    bool error;
 };
 //-----------------------------------------------------------------------------
 class PARSER_GET_USERS: public PARSER
 };
 //-----------------------------------------------------------------------------
 class PARSER_GET_USERS: public PARSER
@@ -164,7 +162,6 @@ private:
     void * userDataCb;
     USERDATA user;
     int depth;
     void * userDataCb;
     USERDATA user;
     int depth;
-    bool error;
 };
 //-----------------------------------------------------------------------------
 class PARSER_GET_USER: public PARSER
 };
 //-----------------------------------------------------------------------------
 class PARSER_GET_USER: public PARSER
@@ -223,7 +220,6 @@ private:
     RecvSendMessageCb_t RecvSendMessageCb;
     void * sendMessageCbData;
     int depth;
     RecvSendMessageCb_t RecvSendMessageCb;
     void * sendMessageCbData;
     int depth;
-    bool error;
 };
 //-----------------------------------------------------------------------------
 class PARSER_AUTH_BY: public PARSER
 };
 //-----------------------------------------------------------------------------
 class PARSER_AUTH_BY: public PARSER
@@ -288,7 +284,6 @@ private:
     PARSER_SEND_MESSAGE parserSendMessage;
 
     NETTRANSACT nt;
     PARSER_SEND_MESSAGE parserSendMessage;
 
     NETTRANSACT nt;
-    int parseDepth;
 
     std::string errorMsg;
     int error;
 
     std::string errorMsg;
     int error;
index 284e1127e5f83da67bb6f04de36f92bd6a6f34f3..40557e3cd6f29984917cf24b4b7e2ab97667db1f 100644 (file)
@@ -45,9 +45,7 @@ using namespace std;
 PARSER_GET_USERS::PARSER_GET_USERS()
     : RecvUserDataCb(NULL),
       userDataCb(NULL),
 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),
 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),
 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),
 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),
 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),
 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),
 PARSER_SEND_MESSAGE::PARSER_SEND_MESSAGE()
     : RecvSendMessageCb(NULL),
       sendMessageCbData(NULL),
-      depth(0),
-      error(false)
+      depth(0)
 {
 }
 //-----------------------------------------------------------------------------
 {
 }
 //-----------------------------------------------------------------------------
index 0ca3028c9e881209cf4d881696c6aedc0ae9a41e..1b13de6d1ce4916086a64063474fefaad3c5b356 100644 (file)
@@ -92,7 +92,6 @@ sc->End(el);
 //-----------------------------------------------------------------------------
 SERVCONF::SERVCONF()
     : currParser(NULL),
 //-----------------------------------------------------------------------------
 SERVCONF::SERVCONF()
     : currParser(NULL),
-      parseDepth(0),
       error(0),
       RecvUserDataCb(NULL),
       RecvGetUserDataCb(NULL),
       error(0),
       RecvUserDataCb(NULL),
       RecvGetUserDataCb(NULL),