eliminated unused setWindowSize files.

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

View File

@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
.DEFAULT_GOAL := all
# seems superfluous
#.PHONY: fmt vet build clean
@ -20,3 +20,4 @@ buildwin:
clean:
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
}