Skip to content

Commit

Permalink
Merge pull request #80 from guillerodriguez/robovm_cleanup
Browse files Browse the repository at this point in the history
Robovm cleanup
  • Loading branch information
samskivert authored Apr 1, 2019
2 parents 5f2eca1 + 89dee88 commit 52a3f35
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions robovm/src/playn/robovm/RoboPlatform.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.robovm.apple.foundation.NSOperationQueue;
import org.robovm.apple.glkit.GLKViewDrawableColorFormat;
import org.robovm.apple.uikit.UIApplication;
import org.robovm.apple.uikit.UIDevice;
import org.robovm.apple.uikit.UIInterfaceOrientationMask;
import org.robovm.apple.uikit.UIWindow;

Expand Down Expand Up @@ -66,11 +65,6 @@ public static class Config {
* AVAudioPlayer competes with OpenAL for sound channels). */
public int openALSources = 24;

/** Seconds to wait for the game loop to terminate before terminating GL and AL services. This
* is only used if PlayN is integrated into a larger iOS application and does not control the
* application lifecycle. */
public float timeForTermination = 0.5f;

/** Configures the format of the GL framebuffer. The default is RGBA8888, but one can use
* RGB565 for higher performance at the cost of lower color fidelity. */
public GLKViewDrawableColorFormat glBufferFormat = GLKViewDrawableColorFormat.RGBA8888;
Expand Down Expand Up @@ -102,7 +96,6 @@ public static RoboPlatform create (UIWindow window, Config config) {
/** A signal emitted when the device rotates. */
public Signal<RoboOrientEvent> orient = Signal.create();

final int osVersion = getOSVersion();
final Config config;

/** Used as a guard flag to avoid duplicated entries caused by the double dispatches of
Expand Down Expand Up @@ -191,10 +184,4 @@ void willTerminate () {
// let the app know that we're terminating
dispatchEvent(lifecycle, Lifecycle.EXIT);
}

private int getOSVersion () {
String systemVersion = UIDevice.getCurrentDevice().getSystemVersion();
int version = Integer.parseInt(systemVersion.split("\\.")[0]);
return version;
}
}

0 comments on commit 52a3f35

Please sign in to comment.