Skip to content

Commit 4559963

Browse files
committed
delete:unused configure field
1 parent 4205bd5 commit 4559963

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

XEngine_Source/StorageModule_Config/Config_Define.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ typedef struct tag_XEngine_ServerConfig
2121
int nCenterPort;
2222
int nStorageDLPort;
2323
int nStorageUPPort;
24-
int nP2XPPort;
2524
struct
2625
{
2726
BOOL bReload;
@@ -34,7 +33,6 @@ typedef struct tag_XEngine_ServerConfig
3433
int nCenterThread;
3534
int nStorageDLThread;
3635
int nStorageUPThread;
37-
int nP2XPThread;
3836
}st_XMax;
3937
struct
4038
{
@@ -43,7 +41,6 @@ typedef struct tag_XEngine_ServerConfig
4341
int nTimeCheck;
4442
int nCenterTimeOut;
4543
int nStorageTimeOut;
46-
int nP2XPTimeOut;
4744
}st_XTime;
4845
struct
4946
{
@@ -94,7 +91,6 @@ typedef struct tag_XEngine_ServerConfig
9491
int nTime;
9592
int nSDPort;
9693
int nRVPort;
97-
TCHAR tszQQWryFile[MAX_PATH];
9894
}st_P2xp;
9995
struct
10096
{

XEngine_Source/StorageModule_Config/Config_Json/Config_Json.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
8686
pSt_ServerConfig->nCenterPort = st_JsonRoot["nCenterPort"].asInt();
8787
pSt_ServerConfig->nStorageDLPort = st_JsonRoot["nStorageDLPort"].asInt();
8888
pSt_ServerConfig->nStorageUPPort = st_JsonRoot["nStorageUPPort"].asInt();
89-
pSt_ServerConfig->nP2XPPort = st_JsonRoot["nP2XPPort"].asInt();
9089

91-
if (st_JsonRoot["XMax"].empty() || (7 != st_JsonRoot["XMax"].size()))
90+
if (st_JsonRoot["XMax"].empty() || (6 != st_JsonRoot["XMax"].size()))
9291
{
9392
Config_IsErrorOccur = TRUE;
9493
Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XMAX;
@@ -101,9 +100,8 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
101100
pSt_ServerConfig->st_XMax.nCenterThread = st_JsonXMax["CenterThread"].asInt();
102101
pSt_ServerConfig->st_XMax.nStorageUPThread = st_JsonXMax["nStorageUPThread"].asInt();
103102
pSt_ServerConfig->st_XMax.nStorageDLThread = st_JsonXMax["nStorageDLThread"].asInt();
104-
pSt_ServerConfig->st_XMax.nP2XPThread = st_JsonXMax["nP2XPThread"].asInt();
105103

106-
if (st_JsonRoot["XTime"].empty() || (6 != st_JsonRoot["XTime"].size()))
104+
if (st_JsonRoot["XTime"].empty() || (5 != st_JsonRoot["XTime"].size()))
107105
{
108106
Config_IsErrorOccur = TRUE;
109107
Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XTIME;
@@ -115,7 +113,6 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
115113
pSt_ServerConfig->st_XTime.nTimeCheck = st_JsonXTime["nTimeCheck"].asInt();
116114
pSt_ServerConfig->st_XTime.nCenterTimeOut = st_JsonXTime["nCenterTimeOut"].asInt();
117115
pSt_ServerConfig->st_XTime.nStorageTimeOut = st_JsonXTime["nStorageTimeOut"].asInt();
118-
pSt_ServerConfig->st_XTime.nP2XPTimeOut = st_JsonXTime["nP2XPTimeOut"].asInt();
119116

120117
if (st_JsonRoot["XLog"].empty() || (3 != st_JsonRoot["XLog"].size()))
121118
{
@@ -184,7 +181,7 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
184181
pSt_ServerConfig->st_XLimit.nMaxDNLoader = st_JsonXLimit["nMaxDNLoad"].asInt64();
185182
pSt_ServerConfig->st_XLimit.nMaxUPLoader = st_JsonXLimit["nMaxUPLoad"].asInt64();
186183

187-
if (st_JsonRoot["XP2xp"].empty() || (4 != st_JsonRoot["XP2xp"].size()))
184+
if (st_JsonRoot["XP2xp"].empty() || (3 != st_JsonRoot["XP2xp"].size()))
188185
{
189186
Config_IsErrorOccur = TRUE;
190187
Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_P2XP;
@@ -194,7 +191,6 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
194191
pSt_ServerConfig->st_P2xp.nTime = st_JsonP2xp["nTime"].asInt();
195192
pSt_ServerConfig->st_P2xp.nRVPort = st_JsonP2xp["nRVPort"].asInt();
196193
pSt_ServerConfig->st_P2xp.nSDPort = st_JsonP2xp["nSDPort"].asInt();
197-
_tcscpy(pSt_ServerConfig->st_P2xp.tszQQWryFile, st_JsonP2xp["tszQQWryFile"].asCString());
198194

199195
if (st_JsonRoot["XCert"].empty() || (6 != st_JsonRoot["XCert"].size()))
200196
{

0 commit comments

Comments
 (0)