Skip to content

Commit ee5deb6

Browse files
committed
Removed some unused internal codes
1 parent d21f41a commit ee5deb6

16 files changed

+21
-811
lines changed

SphereSvr.vcxproj

-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ if defined GitRev (
194194
<ClCompile Include="src\common\CCacheableScriptFile.cpp" />
195195
<ClCompile Include="src\common\CCSVFile.cpp" />
196196
<ClCompile Include="src\common\CEncrypt.cpp" />
197-
<ClCompile Include="src\common\crashdump\crashdump.cpp" />
198197
<ClCompile Include="src\common\CVarFloat.cpp" />
199198
<ClCompile Include="src\common\sqlite\SQLite.cpp" />
200199
<ClCompile Include="src\common\sqlite\sqlite3.c" />
@@ -303,7 +302,6 @@ if defined GitRev (
303302
<ClInclude Include="src\common\CCSVFile.h" />
304303
<ClInclude Include="src\common\CEncrypt.h" />
305304
<ClInclude Include="src\common\CMD5.h" />
306-
<ClInclude Include="src\common\crashdump\crashdump.h" />
307305
<ClInclude Include="src\common\CVarFloat.h" />
308306
<ClInclude Include="src\common\CWindow.h" />
309307
<ClInclude Include="src\common\sqlite\SQLite.h" />

SphereSvr.vcxproj.filters

-9
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<Filter Include="common\twofish">
1111
<UniqueIdentifier>{353e7db8-874b-4551-8e15-0fcc9875d06e}</UniqueIdentifier>
1212
</Filter>
13-
<Filter Include="common\crashdump">
14-
<UniqueIdentifier>{bfcf28bb-2d0c-48a1-a304-037fb69f178b}</UniqueIdentifier>
15-
</Filter>
1613
<Filter Include="common\sqlite">
1714
<UniqueIdentifier>{19b83913-ef63-4820-9ae0-158e0c75d5b8}</UniqueIdentifier>
1815
</Filter>
@@ -165,9 +162,6 @@
165162
<ClCompile Include="src\sphere\threads.cpp">
166163
<Filter>sphere</Filter>
167164
</ClCompile>
168-
<ClCompile Include="src\common\crashdump\crashdump.cpp">
169-
<Filter>common\crashdump</Filter>
170-
</ClCompile>
171165
<ClCompile Include="src\common\CVarFloat.cpp">
172166
<Filter>common</Filter>
173167
</ClCompile>
@@ -512,9 +506,6 @@
512506
<ClInclude Include="src\sphere\threads.h">
513507
<Filter>sphere</Filter>
514508
</ClInclude>
515-
<ClInclude Include="src\common\crashdump\crashdump.h">
516-
<Filter>common\crashdump</Filter>
517-
</ClInclude>
518509
<ClInclude Include="src\common\CVarFloat.h">
519510
<Filter>common</Filter>
520511
</ClInclude>

src/common/CException.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void Assert_CheckFail(LPCTSTR pszExp, LPCTSTR pszFile, long lLine)
88
#ifdef _WIN32
99

1010
#ifndef _DEBUG
11-
#include "./crashdump/crashdump.h"
1211

1312
extern "C"
1413
{
@@ -21,11 +20,7 @@ void Assert_CheckFail(LPCTSTR pszExp, LPCTSTR pszFile, long lLine)
2120

2221
void _cdecl Sphere_Exception_Win32(unsigned int id, struct _EXCEPTION_POINTERS *pData)
2322
{
24-
#ifndef _NO_CRASHDUMP
25-
if ( CrashDump::IsEnabled() )
26-
CrashDump::StartCrashDump(GetCurrentProcessId(), GetCurrentThreadId(), pData);
27-
#endif
28-
// WIN32 gets an exception.
23+
// WIN32 gets an exception
2924
DWORD dwCodeStart = (DWORD_PTR)&globalstartsymbol; // sync up to MAP file
3025
DWORD dwAddr = (DWORD_PTR)pData->ExceptionRecord->ExceptionAddress;
3126
dwAddr -= dwCodeStart;

src/common/CWindow.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ class CWinApp // Similar to MFC type
210210
static const char *m_sClassName;
211211
LPCTSTR m_pszAppName; // Specifies the name of the application. (display freindly)
212212
HINSTANCE m_hInstance; // Identifies the current instance of the application.
213-
LPTSTR m_lpCmdLine; // Points to a null-terminated string that specifies the command line for the application.
214213
CWindow * m_pMainWnd; // Holds a pointer to the application's main window. For an example of how to initialize m_pMainWnd, see InitInstance.
215214
CGString m_pszExeName; // The module name of the application.
216215
CGString m_pszProfileName; // the path to the profile.
@@ -220,7 +219,6 @@ class CWinApp // Similar to MFC type
220219
{
221220
m_pszAppName = "";
222221
m_hInstance = NULL;
223-
m_lpCmdLine = NULL;
224222
m_pMainWnd = NULL;
225223
}
226224

@@ -233,11 +231,10 @@ class CWinApp // Similar to MFC type
233231
CWinApp& operator=(const CWinApp& other);
234232

235233
public:
236-
void InitInstance( LPCTSTR pszAppName, HINSTANCE hInstance, LPTSTR lpszCmdLine )
234+
void InitInstance(LPCTSTR pszAppName, HINSTANCE hInstance)
237235
{
238236
m_pszAppName = pszAppName; // assume this is a static data pointer valid forever.
239237
m_hInstance = hInstance;
240-
m_lpCmdLine = lpszCmdLine;
241238

242239
char szFileName[ _MAX_PATH ];
243240
if ( ! GetModuleFileName( m_hInstance, szFileName, sizeof( szFileName )))

src/common/crashdump/crashdump.cpp

-82
This file was deleted.

src/common/crashdump/crashdump.h

-40
This file was deleted.

0 commit comments

Comments
 (0)