refresh neither leaks wraps, allows 2 of the same at once, nor closes raws
This commit is contained in:
@@ -31,9 +31,6 @@ func NewKeyboard() Keyboard {
|
||||
return Keyboard{}
|
||||
}
|
||||
|
||||
func (kb Keyboard) Refresh() {
|
||||
}
|
||||
|
||||
func (kb Keyboard) Close() {
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
|
||||
@@ -22,9 +22,6 @@ func NewRandom(generator func() byte) *Random {
|
||||
return &Random{generator: generator}
|
||||
}
|
||||
|
||||
func (r *Random) Refresh() {
|
||||
}
|
||||
|
||||
func (r *Random) Close() {
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import (
|
||||
type Raw interface {
|
||||
Read() []byte
|
||||
Close()
|
||||
Refresh()
|
||||
}
|
||||
|
||||
func New(ctx context.Context) Raw {
|
||||
|
||||
@@ -55,9 +55,6 @@ func (udp UDP) Read() []byte {
|
||||
}
|
||||
}
|
||||
|
||||
func (udp UDP) Refresh() {
|
||||
}
|
||||
|
||||
func (udp UDP) Close() {
|
||||
udp.conn.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user