app,gpu{,/headless,/internal/rendertest}: replace io/ioutil with io & os

Signed-off-by: Serhat Sevki Dincer <jfcgauss@gmail.com>
This commit is contained in:
Serhat Sevki Dincer
2023-02-23 21:47:27 +11:00
committed by Elias Naur
parent 1210bbb34a
commit 39b1158410
4 changed files with 7 additions and 9 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import (
"fmt"
"image"
"io"
"io/ioutil"
"math"
"os"
"os/exec"
@@ -1018,7 +1017,7 @@ func (w *window) ReadClipboard() {
// Don't let slow clipboard transfers block event loop.
go func() {
defer r.Close()
data, _ := ioutil.ReadAll(r)
data, _ := io.ReadAll(r)
w.clipReads <- clipboard.Event{Text: string(data)}
w.Wakeup()
}()