summaryrefslogtreecommitdiff
path: root/redo/dialog_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-25 16:20:10 -0400
committerPietro Gagliardi <[email protected]>2014-08-25 16:20:10 -0400
commit6fcfbd9bdb52d662e9828fd84e7890ccc6a52549 (patch)
tree94b4a01b17685c42d60adc1415c09466b6259697 /redo/dialog_windows.go
parentb7fd5f035eaaa30c8ae66ffaae1b70017b7360c9 (diff)
Moved some functions around.
Diffstat (limited to 'redo/dialog_windows.go')
-rw-r--r--redo/dialog_windows.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/redo/dialog_windows.go b/redo/dialog_windows.go
index 0346f56..1ca7771 100644
--- a/redo/dialog_windows.go
+++ b/redo/dialog_windows.go
@@ -11,18 +11,6 @@ import (
// #include "winapi_windows.h"
import "C"
-// TODO move to common_windows.go
-func wstrToString(wstr *C.WCHAR) string {
- n := C.wcslen((*C.wchar_t)(unsafe.Pointer(wstr)))
- xbuf := &reflect.SliceHeader{
- Data: uintptr(unsafe.Pointer(wstr)),
- Len: int(n + 1),
- Cap: int(n + 1),
- }
- buf := (*[]uint16)(unsafe.Pointer(xbuf))
- return syscall.UTF16ToString(*buf)
-}
-
func openFile() string {
name := C.openFile()
if name == nil {