[MSPAINT] Delete unused global variables (lfTextFont, ...

hfontTextFont, hwndEditCtl, textToolText, and textToolTextMaxLen).
CORE-18867
This commit is contained in:
Katayama Hirofumi MZ 2023-03-15 15:09:26 +09:00
parent cce3eb9393
commit 3625f55fbb
2 changed files with 0 additions and 18 deletions

View file

@ -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;

View file

@ -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 */