From 09f6ec4a668970291915b1bd25b019c638c6f55e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 14 Feb 2014 12:17:21 -0500 Subject: [PATCH] Now that we have sysData.text() we no longer need the getText() that needed to be migrated. --- common_windows.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/common_windows.go b/common_windows.go index fafdc1c..e541c7b 100644 --- a/common_windows.go +++ b/common_windows.go @@ -51,29 +51,6 @@ func _MAKEINTRESOURCE(what uint16) uintptr { return uintptr(what) } -/* -// TODO migrate - -// TODO adorn error messages with which step failed? -func getText(hwnd _HWND) (text string, err error) { - var tc []uint16 - - length, err := SendMessage(hwnd, WM_GETTEXTLENGTH, 0, 0) - if err != nil { - return "", err - } - tc = make([]uint16, length + 1) - _, err = SendMessage(hwnd, - WM_GETTEXT, - WPARAM(length + 1), - LPARAM(unsafe.Pointer(&tc[0]))) - if err != nil { - return "", err - } - return syscall.UTF16ToString(tc), nil -} -*/ - type _POINT struct { X int32 Y int32