Revert "[3.0] Set current time to default WatchTime constructor" 81/97681/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:33:12 +0000 (09:33 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:33:16 +0000 (09:33 +0900)
This reverts commit 5f95a0d55b668bb135114b8e8f70407491cf33e8.

Change-Id: I611bc246b25fa9e83396a92cbdb38c98cd219583

adaptors/wearable/watch/watch-time.cpp

index 6c60b54..34c4089 100644 (file)
@@ -36,6 +36,11 @@ struct WatchTime::Impl
   void *mTimeHandle;
 };
 
+WatchTime::WatchTime()
+  :mImpl(NULL)
+{
+}
+
 WatchTime::WatchTime(void *time_handle)
 {
   mImpl = new Impl(time_handle);
@@ -52,14 +57,6 @@ WatchTime::~WatchTime()
 
 #ifdef APPCORE_WATCH_AVAILABLE
 
-WatchTime::WatchTime()
-{
-  watch_time_h watch_time = {0,};
-
-  watch_time_get_current_time(&watch_time);
-  mImpl = new Impl(watch_time);
-}
-
 int WatchTime::GetHour() const
 {
   int hour;
@@ -93,10 +90,6 @@ int WatchTime::GetSecond() const
 }
 
 #else
-WatchTime::WatchTime()
-  :mImpl(NULL)
-{
-}
 
 int WatchTime::GetHour() const
 {