Skip to content

Commit a4e129c

Browse files
committed
windows: remove deprecated IsConsole function
This was deprecated in 57a2131 and a32e4b2, both of which were part of v0.5.0. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent c99aa98 commit a4e129c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

windows/console.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ func GetHandleInfo(in interface{}) (uintptr, bool) {
2828
return inFd, isTerminal
2929
}
3030

31-
// IsConsole returns true if the given file descriptor is a Windows Console.
32-
// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
33-
//
34-
// Deprecated: use [windows.GetConsoleMode] or [golang.org/x/term.IsTerminal].
35-
func IsConsole(fd uintptr) bool {
36-
return isConsole(fd)
37-
}
38-
3931
func isConsole(fd uintptr) bool {
4032
var mode uint32
4133
err := windows.GetConsoleMode(windows.Handle(fd), &mode)

0 commit comments

Comments
 (0)