refresh neither leaks wraps, allows 2 of the same at once, nor closes raws

This commit is contained in:
bel
2023-03-25 10:50:39 -06:00
parent 97cc3ae151
commit ae1e32391c
18 changed files with 94 additions and 64 deletions

View File

@@ -31,9 +31,6 @@ func NewKeyboard() Keyboard {
return Keyboard{}
}
func (kb Keyboard) Refresh() {
}
func (kb Keyboard) Close() {
switch runtime.GOOS {
case "linux":

View File

@@ -22,9 +22,6 @@ func NewRandom(generator func() byte) *Random {
return &Random{generator: generator}
}
func (r *Random) Refresh() {
}
func (r *Random) Close() {
}

View File

@@ -9,7 +9,6 @@ import (
type Raw interface {
Read() []byte
Close()
Refresh()
}
func New(ctx context.Context) Raw {

View File

@@ -55,9 +55,6 @@ func (udp UDP) Read() []byte {
}
}
func (udp UDP) Refresh() {
}
func (udp UDP) Close() {
udp.conn.Close()
}