       successCallbacks: [callbacks.onSuccess]
       failureCallbacks: [callbacks.onFailure]
 
-  @mapDegreesToOrientations: (degrees) ->
-    if degrees == 0 or degrees == "0"
-      "portrait"
-    else if degrees == 180 or degrees == "180"
-      "portraitupsidedown"
-    else if degrees == -90 or degrees == "-90"
-      "landscapeleft"
-    else if degrees == 90 or degrees == "90"
-      "landscaperight"
-    else
-      return degrees
-
   # Deprecated. should use steroids.screen.setAllowedRotations() instead.
   setAllowedRotations: (options={}, callbacks={}) ->
     allowedRotations = if options.constructor.name == "Array"

    else
      options.degrees

    orientation = @mapDegreesToOrientations degrees

    steroids.nativeBridge.nativeCall
      method: "setOrientation"


    #make sure we have orientation and not degrees
    allowedRotations = allowedRotations.map (value) -> 
      Screen.mapDegreesToOrientations value

    steroids.nativeBridge.nativeCall
      method: "setAllowedOrientation"
