From 58218a85b5897d84041d5b765a51907012d66fdb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 25 Jun 2016 04:45:19 +0900 Subject: [PATCH] mobile: Remove SetScreenSize/Scale --- mobile/impl_empty.go | 6 ------ mobile/impl_mobile.go | 8 -------- mobile/mobile.go | 10 ---------- 3 files changed, 24 deletions(-) diff --git a/mobile/impl_empty.go b/mobile/impl_empty.go index 20a33904b..c5801134d 100644 --- a/mobile/impl_empty.go +++ b/mobile/impl_empty.go @@ -22,12 +22,6 @@ import ( "github.com/hajimehoshi/ebiten" ) -func setScreenSize(width, height int) { -} - -func setScreenScale(scale float64) { -} - func render() error { return nil } diff --git a/mobile/impl_mobile.go b/mobile/impl_mobile.go index 4c8f09647..83538b275 100644 --- a/mobile/impl_mobile.go +++ b/mobile/impl_mobile.go @@ -25,14 +25,6 @@ import ( var chError <-chan error -func setScreenSize(width, height int) { - ui.CurrentUI().SetScreenSize(width, height) -} - -func setScreenScale(scale float64) { - ui.CurrentUI().SetScreenScale(scale) -} - func render() error { if chError == nil { return errors.New("mobile: chError must not be nil: Start is not called yet?") diff --git a/mobile/mobile.go b/mobile/mobile.go index 608841199..5f1f38c6c 100644 --- a/mobile/mobile.go +++ b/mobile/mobile.go @@ -20,8 +20,6 @@ import ( ) type EventDispatcher interface { - SetScreenSize(width, height int) - SetScreenScale(scale float64) Render() error // UpdateTouchesOnAndroid updates the touch state on Android. @@ -58,14 +56,6 @@ type eventDispatcher struct { touches map[int]position } -func (e *eventDispatcher) SetScreenSize(width, height int) { - setScreenSize(width, height) -} - -func (e *eventDispatcher) SetScreenScale(scale float64) { - setScreenScale(scale) -} - func (e *eventDispatcher) Render() error { return render() }