eliminated unused setWindowSize files.

This commit is contained in:
Erik Brakkee 2024-07-23 19:31:43 +02:00
parent 75ac9a46f3
commit 633b79fae4
3 changed files with 2 additions and 20 deletions

View File

@ -1,4 +1,4 @@
.DEFAULT_GOAL := build .DEFAULT_GOAL := all
# seems superfluous # seems superfluous
#.PHONY: fmt vet build clean #.PHONY: fmt vet build clean
@ -20,3 +20,4 @@ buildwin:
clean: clean:
rm -rf bin rm -rf bin
all: build buildwin

View File

@ -1,12 +0,0 @@
package main
import (
"os"
"syscall"
"unsafe"
)
func setWinsize(f *os.File, w, h int) {
syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ),
uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(h), uint16(w), 0, 0})))
}

View File

@ -1,7 +0,0 @@
package main
import "os"
func setWinsize(f *os.File, w, h int) {
// Empty
}