https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3625f55fbb30bd8306112…
commit 3625f55fbb30bd83061128c0c5c0602386d4c295
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Mar 15 15:09:26 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Mar 15 15:09:26 2023 +0900
[MSPAINT] Delete unused global variables (lfTextFont, ...
hfontTextFont, hwndEditCtl, textToolText, and textToolTextMaxLen).
CORE-18867
---
base/applications/mspaint/globalvar.h | 5 -----
base/applications/mspaint/main.cpp | 13 -------------
2 files changed, 18 deletions(-)
diff --git a/base/applications/mspaint/globalvar.h
b/base/applications/mspaint/globalvar.h
index 87f903438ba..de01287c4da 100644
--- a/base/applications/mspaint/globalvar.h
+++ b/base/applications/mspaint/globalvar.h
@@ -26,11 +26,6 @@ extern ToolsModel toolsModel;
class SelectionModel;
extern SelectionModel selectionModel;
-extern LOGFONT lfTextFont;
-extern HFONT hfontTextFont;
-extern LPTSTR textToolText;
-extern int textToolTextMaxLen;
-
class PaletteModel;
extern PaletteModel paletteModel;
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp
index 7d1f6af427b..598064d19d1 100644
--- a/base/applications/mspaint/main.cpp
+++ b/base/applications/mspaint/main.cpp
@@ -21,12 +21,6 @@ ToolsModel toolsModel;
SelectionModel selectionModel;
-LOGFONT lfTextFont;
-HFONT hfontTextFont;
-HWND hwndEditCtl;
-LPTSTR textToolText = NULL;
-int textToolTextMaxLen = 0;
-
PaletteModel paletteModel;
RegistrySettings registrySettings;
@@ -166,13 +160,6 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR
lpszArgument
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
- /* init font for text tool */
- ZeroMemory(&lfTextFont, sizeof(lfTextFont));
- lfTextFont.lfHeight = 0;
- lfTextFont.lfWeight = FW_NORMAL;
- lfTextFont.lfCharSet = DEFAULT_CHARSET;
- hfontTextFont = CreateFontIndirect(&lfTextFont);
-
hProgInstance = hThisInstance;
/* initialize common controls library */