Remove orientation from application class 75/38075/2
authorNick Holland <nick.holland@partner.samsung.com>
Fri, 10 Apr 2015 14:26:09 +0000 (15:26 +0100)
committerNick Holland <nick.holland@partner.samsung.com>
Wed, 15 Apr 2015 07:06:10 +0000 (00:06 -0700)
Orientation is available from Window, so no longer required from application.

Change-Id: I1ce5ff6a23fd0d7fa0c007a421410608aeaa0bf7

adaptors/public-api/adaptor-framework/application.cpp
adaptors/public-api/adaptor-framework/application.h

index 89ca011..c359ff5 100644 (file)
 #include "application.h"
 
 // EXTERNAL INCLUDES
-#include <orientation.h>
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
 #include <application-impl.h>
-#include <orientation-impl.h>
 
 namespace Dali
 {
@@ -106,16 +104,6 @@ void Application::Quit()
   Internal::Adaptor::GetImplementation(*this).Quit();
 }
 
-Orientation Application::GetOrientation()
-{
-  Window window = GetWindow();
-  if( window )
-  {
-    return window.GetOrientation();
-  }
-  return Orientation();
-}
-
 bool Application::AddIdle( CallbackBase* callback )
 {
   return Internal::Adaptor::GetImplementation(*this).AddIdle( callback );
index 09408e0..b2fd39b 100644 (file)
@@ -223,14 +223,6 @@ public:
   void Quit();
 
   /**
-   * This returns a handle to the Orientation object used by Application which allows
-   * the user to determine the orientation of the device and connect to a
-   * signal emitted whenever the orientation changes.
-   * @return A handle to the Orientation object used by the Application
-   */
-  Orientation GetOrientation();
-
-  /**
    * Ensures that the function passed in is called from the main loop when it is idle.
    *
    * A callback of the following type may be used: