From b4f05a9b02bd1166d74c4681ae0e9f499b882624 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 15 Nov 2016 09:33:12 +0900 Subject: [PATCH] Revert "[3.0] Set current time to default WatchTime constructor" This reverts commit 5f95a0d55b668bb135114b8e8f70407491cf33e8. Change-Id: I611bc246b25fa9e83396a92cbdb38c98cd219583 --- adaptors/wearable/watch/watch-time.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/adaptors/wearable/watch/watch-time.cpp b/adaptors/wearable/watch/watch-time.cpp index 6c60b54..34c4089 100644 --- a/adaptors/wearable/watch/watch-time.cpp +++ b/adaptors/wearable/watch/watch-time.cpp @@ -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 { -- 2.7.4