From 04ac26c304e003834e8de6df4e0bbf390fab2a68 Mon Sep 17 00:00:00 2001 From: taeyoon Date: Tue, 9 Aug 2016 17:24:04 +0900 Subject: [PATCH] Revert "Set current time to default WatchTime constructor" This reverts commit bddf0cea3f5d4beca9542fdc991bb598f850cdfc. Change-Id: Ibda8927b8931e96992cd7b106e5ee943671a355c --- 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