uidriver/glfw: Remove unused logics

This commit is contained in:
Hajime Hoshi 2020-07-03 22:24:30 +09:00
parent 5bc09acb41
commit b7a1e85788

View File

@ -74,9 +74,6 @@ func (i *Input) GamepadIDs() []int {
} }
var r []int var r []int
_ = i.ui.t.Call(func() error { _ = i.ui.t.Call(func() error {
if len(i.gamepads) == 0 {
return nil
}
for id, g := range i.gamepads { for id, g := range i.gamepads {
if g.valid { if g.valid {
r = append(r, id) r = append(r, id)