From cf53b33c949befd56b5976f0690db51d4fdb43c4 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 11 Aug 2012 19:34:27 +0200 Subject: [PATCH] Remove unused functions. --- linkcheck/colorama.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/linkcheck/colorama.py b/linkcheck/colorama.py index 0c004cb2..1fabfd8a 100644 --- a/linkcheck/colorama.py +++ b/linkcheck/colorama.py @@ -90,26 +90,6 @@ def SetConsoleTextAttribute(stream_id, attrs): handle = handles[stream_id] return windll.kernel32.SetConsoleTextAttribute(handle, attrs) -def FillConsoleOutputCharacter(stream_id, char, length, start): - handle = handles[stream_id] - char = TCHAR(char) - length = DWORD(length) - num_written = DWORD(0) - # Note that this is hard-coded for ANSI (vs wide) bytes. - success = windll.kernel32.FillConsoleOutputCharacterA( - handle, char, length, start, byref(num_written)) - return num_written.value - -def FillConsoleOutputAttribute(stream_id, attr, length, start): - ''' FillConsoleOutputAttribute( hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten )''' - handle = handles[stream_id] - attribute = WORD(attr) - length = DWORD(length) - num_written = DWORD(0) - # Note that this is hard-coded for ANSI (vs wide) bytes. - return windll.kernel32.FillConsoleOutputAttribute( - handle, attribute, length, start, byref(num_written)) - # from wincon.h BLACK = 0