remove unnecessary event handler setting
authorYoung Ik Cho <youngik.cho@samsung.com>
Sat, 20 Apr 2013 06:24:24 +0000 (15:24 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Sat, 20 Apr 2013 06:24:24 +0000 (15:24 +0900)
Change-Id: Ia13bc61c81960aefad6615f1a57a8257cebb1ce7
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
src/app/FApp_AppImpl.cpp
src/app/inc/FApp_AppImpl.h

index 4c838f3..6ec5cf5 100644 (file)
@@ -172,10 +172,10 @@ _AppImpl::Execute(_IAppImpl* pIAppImpl)
        state_handler.terminate = &OnTerminate;
        state_handler.pause = &OnPause;
        state_handler.resume = &OnResume;
-       state_handler.device_orientation = &OnDeviceOrientationChanged;
+       state_handler.device_orientation = NULL;
 
        state_handler.low_memory = &OnLowMemory;
-       state_handler.low_battery = &OnLowBattery;
+       state_handler.low_battery = NULL;
        state_handler.language_changed = &OnLanguageChanged;
        state_handler.region_format_changed = &OnRegionFormatChanged;
 
@@ -407,20 +407,6 @@ _AppImpl::OnPause(void* user_data)
 }
 
 
-void
-_AppImpl::OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data)
-{
-       _AppImpl* pAppImpl = _AppImpl::GetInstance();
-       SysTryReturnVoidResult(NID_APP, pAppImpl != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting App instance failed.");
-       SysTryReturnVoidResult(NID_APP, pAppImpl->__pIAppImpl != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting App instance failed.");
-
-       const AppState state = _AppInfo::GetAppState();
-       SysTryReturnVoidResult(NID_APP, state == INITIALIZING || state == RUNNING, E_INVALID_STATE, "[E_INVALID_STATE] Invalid application state : %d.", state);
-
-       pAppImpl->__pIAppImpl->OnDeviceOrientationChanged(orientation);
-}
-
-
 _AppImpl::~_AppImpl(void)
 {
        __pAppImpl = null;
@@ -623,12 +609,6 @@ _AppImpl::OnLowMemory(void* user_data)
 
 
 void
-_AppImpl::OnLowBattery(void* user_data)
-{
-       // Osp doesn't implement this callback.
-}
-
-void
 _AppImpl::OnBatteryLevelChanged(BatteryLevel batteryLevel)
 {
        SysTryReturnVoidResult(NID_APP, __pApp != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting internal instance failed.");
index d21f076..60f8908 100644 (file)
@@ -171,14 +171,6 @@ public:
        static void OnTerminate(void* user_data);
 
        /**
-        * Called when an orintation event occurs.
-        *
-        * @since 2.1
-        * @param[in]   orientation     The information about the orientation event
-        */
-       static void OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data);
-
-       /**
         * Called when the system memory is running low
         *
         * @since 2.1
@@ -188,15 +180,6 @@ public:
        static void OnLowMemory(void* user_data);
 
        /**
-        * Called when the battery power is running low
-        *
-        * @since 2.1
-        * @param[in]   user_data       The user data passed from the callback registration function
-        * @remarks     This is a system dependent callback function
-        */
-       static void OnLowBattery(void* user_data);
-
-       /**
         * Called when language setting changes
         *
         * @since 2.1