Remove unused functions and variables

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2022-02-10 15:16:11 -08:00
parent ae7f370fed
commit 07ce8c6e78
2 changed files with 1 additions and 24 deletions
-4
View File
@@ -47,8 +47,6 @@ extern HMODULE gDLLHandle;
static HWND hwndException = 0;
static bool g_bUserDialog = true; // true=on crash show dialog box, false=supress user interaction
static int PrintException(EXCEPTION_POINTERS* pex);
static bool IsFloatingPointException(EXCEPTION_POINTERS* pex);
extern LONG WINAPI CryEngineExceptionFilterWER(struct _EXCEPTION_POINTERS* pExceptionPointers);
@@ -667,8 +665,6 @@ INT_PTR CALLBACK DebugCallStack::ExceptionDialogProc(HWND hwndDlg, UINT message,
{
static EXCEPTION_POINTERS* pex;
static char errorString[32768] = "";
switch (message)
{
case WM_INITDIALOG:
@@ -2620,26 +2620,7 @@ namespace
UnixTimeToFileTime(unixtime, &filetime);
FileTimeToSystemTime(&filetime, systemtime);
}
time_t UnixTimeFromFileTime(const FILETIME* filetime)
{
LONGLONG longlong = filetime->dwHighDateTime;
longlong <<= 32;
longlong |= filetime->dwLowDateTime;
longlong -= 116444736000000000;
return longlong / 10000000;
}
time_t UnixTimeFromSystemTime(const SYSTEMTIME* systemtime)
{
// convert systemtime to filetime
FILETIME filetime;
SystemTimeToFileTime(systemtime, &filetime);
// convert filetime to unixtime
time_t unixtime = UnixTimeFromFileTime(&filetime);
return unixtime;
}
};
}
void CLocalizedStringsManager::LocalizeTime(time_t t, bool bMakeLocalTime, bool bShowSeconds, AZStd::string& outTimeString)
{