From b270a453aa53deed01675bc19f1cb14b05c703d1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 27 Jun 2020 23:05:47 +0200 Subject: Windows: remove unused code targeting Windows 2000. --- src/Common/BootEncryption.cpp | 5 +---- src/Common/Dlgcode.c | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src/Common') diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index e9566951..0a2afb12 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -5169,10 +5169,7 @@ namespace VeraCrypt #endif #ifndef SETUP void BootEncryption::CheckRequirements () - { - if (nCurrentOS == WIN_2000) - throw ErrorException ("SYS_ENCRYPTION_UNSUPPORTED_ON_CURRENT_OS", SRC_POS); - + { if (CurrentOSMajor == 6 && CurrentOSMinor == 0 && CurrentOSServicePack < 1) throw ErrorException ("SYS_ENCRYPTION_UNSUPPORTED_ON_VISTA_SP0", SRC_POS); diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index fc1cdc31..63a13083 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -10069,12 +10069,6 @@ wchar_t GetSystemDriveLetter (void) void TaskBarIconDisplayBalloonTooltip (HWND hwnd, wchar_t *headline, wchar_t *text, BOOL warning) { - if (nCurrentOS == WIN_2000) - { - MessageBoxW (MainDlg, text, headline, warning ? MB_ICONWARNING : MB_ICONINFORMATION); - return; - } - NOTIFYICONDATAW tnid; ZeroMemory (&tnid, sizeof (tnid)); -- cgit v1.2.3