Revert "Set current time to default WatchTime constructor" 60/83160/1
authortaeyoon <taeyoon0.lee@samsung.com>
Tue, 9 Aug 2016 08:24:04 +0000 (17:24 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Tue, 9 Aug 2016 08:24:21 +0000 (17:24 +0900)
This reverts commit bddf0cea3f5d4beca9542fdc991bb598f850cdfc.

Change-Id: Ibda8927b8931e96992cd7b106e5ee943671a355c

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
 {