From 0357f80411ba86ad191cb610617d1f3fe3e6197b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 26 Oct 2017 03:52:23 +0900 Subject: [PATCH] examples/gamepad: Simplify the message --- examples/gamepad/main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/gamepad/main.go b/examples/gamepad/main.go index 9b87571e0..0c8b6e945 100644 --- a/examples/gamepad/main.go +++ b/examples/gamepad/main.go @@ -62,16 +62,7 @@ func update(screen *ebiten.Image) error { return nil } - ids := []string{} - for i, p := range presences { - if p { - ids = append(ids, strconv.Itoa(i)) - } - } - - str := fmt.Sprintf("Gamepad (%s)\n", strings.Join(ids, ",")) - str += "\n" - + str := "" for i, p := range presences { if !p { continue