https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2da0506f2a9fc02acede7d7ff479399013830fad

commit 2da0506f2a9fc02acede7d7ff479399013830fad
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Tue Dec 21 03:01:40 2021 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Thu Jun 15 12:44:37 2023 +0200

    [TASKMGR] Remove more dead code.
---
 base/applications/taskmgr/taskmgr.c | 40 -------------------------------------
 base/applications/taskmgr/taskmgr.h |  3 ---
 2 files changed, 43 deletions(-)

diff --git a/base/applications/taskmgr/taskmgr.c 
b/base/applications/taskmgr/taskmgr.c
index 39c12df2ddd..820f85698ed 100644
--- a/base/applications/taskmgr/taskmgr.c
+++ b/base/applications/taskmgr/taskmgr.c
@@ -423,21 +423,7 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, 
LPARAM lParam)
             }
         }
         break;
-#if 0
-    case WM_NCPAINT:
-        hdc = GetDC(hDlg);
-        GetClientRect(hDlg, &rc);
-        Draw3dRect(hdc, rc.left, rc.top, rc.right, rc.top + 2, 
GetSysColor(COLOR_3DSHADOW), GetSysColor(COLOR_3DHILIGHT));
-        ReleaseDC(hDlg, hdc);
-        break;
 
-    case WM_PAINT:
-        hdc = BeginPaint(hDlg, &ps);
-        GetClientRect(hDlg, &rc);
-        Draw3dRect(hdc, rc.left, rc.top, rc.right, rc.top + 2, 
GetSysColor(COLOR_3DSHADOW), GetSysColor(COLOR_3DHILIGHT));
-        EndPaint(hDlg, &ps);
-        break;
-#endif
     case WM_SIZING:
         /* Make sure the user is sizing the dialog */
         /* in an acceptable range */
@@ -527,32 +513,6 @@ void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
     ExtTextOutW(hDC, 0, 0, ETO_OPAQUE, lpRect, NULL, 0, NULL);
 }
 
-void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr)
-{
-    RECT rect;
-
-    SetBkColor(hDC, clr);
-    rect.left = x;
-    rect.top = y;
-    rect.right = x + cx;
-    rect.bottom = y + cy;
-    ExtTextOutW(hDC, 0, 0, ETO_OPAQUE, &rect, NULL, 0, NULL);
-}
-
-void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, 
COLORREF clrBottomRight)
-{
-    FillSolidRect2(hDC, x, y, cx - 1, 1, clrTopLeft);
-    FillSolidRect2(hDC, x, y, 1, cy - 1, clrTopLeft);
-    FillSolidRect2(hDC, x + cx, y, -1, cy, clrBottomRight);
-    FillSolidRect2(hDC, x, y + cy, cx, -1, clrBottomRight);
-}
-
-void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF 
clrBottomRight)
-{
-    Draw3dRect(hDC, lpRect->left, lpRect->top, lpRect->right - lpRect->left,
-        lpRect->bottom - lpRect->top, clrTopLeft, clrBottomRight);
-}
-
 static void SetUpdateSpeed(HWND hWnd)
 {
     /* Setup update speed (pause=fall down) */
diff --git a/base/applications/taskmgr/taskmgr.h 
b/base/applications/taskmgr/taskmgr.h
index 1557128adba..7a719a77a20 100644
--- a/base/applications/taskmgr/taskmgr.h
+++ b/base/applications/taskmgr/taskmgr.h
@@ -91,9 +91,6 @@ BOOL OnCreate(HWND hWnd);
 void OnSize(WPARAM nType, int cx, int cy);
 void OnMove(WPARAM nType, int cx, int cy);
 void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
-void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
-void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, 
COLORREF clrBottomRight);
-void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF 
clrBottomRight);
 void LoadSettings(void);
 void SaveSettings(void);
 void TaskManager_OnRestoreMainWindow(void);

Reply via email to