Remove unused console font code from Win32Console::setSmallFont.

This commit is contained in:
Ryan Prichard 2012-03-28 01:09:52 -07:00
parent dbc2d51fec
commit 0427aedadd

View File

@ -82,20 +82,10 @@ void Win32Console::setSmallFont()
typedef BOOL WINAPI SetConsoleFontType( typedef BOOL WINAPI SetConsoleFontType(
HANDLE hOutput, HANDLE hOutput,
DWORD dwFontIndex); DWORD dwFontIndex);
typedef BOOL WINAPI GetConsoleFontInfoType(
HANDLE hOutput,
BOOL bMaximize,
DWORD dwNumFonts,
AGENT_CONSOLE_FONT_INFO *info);
typedef DWORD WINAPI GetNumberOfConsoleFontsType();
typedef BOOL WINAPI GetCurrentConsoleFontType( typedef BOOL WINAPI GetCurrentConsoleFontType(
HANDLE hOutput, HANDLE hOutput,
BOOL bMaximize, BOOL bMaximize,
AGENT_CONSOLE_FONT_INFO *pFontInfo); AGENT_CONSOLE_FONT_INFO *pFontInfo);
typedef BOOL WINAPI GetCurrentConsoleFontExType(
HANDLE hOutput,
BOOL bMaximize,
AGENT_CONSOLE_FONT_INFOEX *pFontInfoEx);
typedef BOOL WINAPI SetCurrentConsoleFontExType( typedef BOOL WINAPI SetCurrentConsoleFontExType(
HANDLE hConsoleOutput, HANDLE hConsoleOutput,
BOOL bMaximumWindow, BOOL bMaximumWindow,
@ -109,14 +99,8 @@ void Win32Console::setSmallFont()
SetConsoleFontType *pSetConsoleFont = SetConsoleFontType *pSetConsoleFont =
(SetConsoleFontType*)GetProcAddress(dll, "SetConsoleFont"); (SetConsoleFontType*)GetProcAddress(dll, "SetConsoleFont");
GetConsoleFontInfoType *pGetConsoleFontInfo =
(GetConsoleFontInfoType*)GetProcAddress(dll, "GetConsoleFontInfo");
GetNumberOfConsoleFontsType *pGetNumberOfConsoleFonts =
(GetNumberOfConsoleFontsType*)GetProcAddress(dll, "GetNumberOfConsoleFonts");
GetCurrentConsoleFontType *pGetCurrentConsoleFont = GetCurrentConsoleFontType *pGetCurrentConsoleFont =
(GetCurrentConsoleFontType*)GetProcAddress(dll, "GetCurrentConsoleFont"); (GetCurrentConsoleFontType*)GetProcAddress(dll, "GetCurrentConsoleFont");
GetCurrentConsoleFontExType *pGetCurrentConsoleFontEx =
(GetCurrentConsoleFontExType*)GetProcAddress(dll, "GetCurrentConsoleFontEx");
SetCurrentConsoleFontExType *pSetCurrentConsoleFontEx = SetCurrentConsoleFontExType *pSetCurrentConsoleFontEx =
(SetCurrentConsoleFontExType*)GetProcAddress(dll, "SetCurrentConsoleFontEx"); (SetCurrentConsoleFontExType*)GetProcAddress(dll, "SetCurrentConsoleFontEx");
GetConsoleFontSizeType *pGetConsoleFontSize = GetConsoleFontSizeType *pGetConsoleFontSize =