Remove unused functions and variables

Signed-off-by: Chris Burel <burelc@amazon.com>
monroegm-disable-blank-issue-2
Chris Burel 4 years ago
parent ae7f370fed
commit 07ce8c6e78

@ -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)
{

Loading…
Cancel
Save