From: hyunho Date: Tue, 8 May 2018 10:56:39 +0000 (+0900) Subject: Removes set cur idx api X-Git-Tag: accepted/tizen/unified/20180509.073126~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F178166%2F2;p=platform%2Fcore%2Fappfw%2Fwatchface-complication.git Removes set cur idx api editable's cur idx should be updated by editor Change-Id: Ie80de8e1366f1675ae6cce8d46bc2ed9498bd328 Signed-off-by: hyunho --- diff --git a/watchface-complication/include/watchface-editable.h b/watchface-complication/include/watchface-editable.h index f6a6440..03fab21 100644 --- a/watchface-complication/include/watchface-editable.h +++ b/watchface-complication/include/watchface-editable.h @@ -252,7 +252,6 @@ int watchface_editable_get_nth_data(const watchface_editable_h handle, int nth, int watchface_editable_get_cur_data(const watchface_editable_h handle, bundle **cur_data); int watchface_editable_get_cur_data_idx(const watchface_editable_h handle, int *idx); -int watchface_editable_set_cur_data_idx(const watchface_editable_h handle, int idx); int watchface_editable_get_editable_id(const watchface_editable_h handle, int *editable_id); int watchface_editable_get_geometry(const watchface_editable_h handle, diff --git a/watchface-complication/watchface-editable.cc b/watchface-complication/watchface-editable.cc index ed91d18..0731dea 100644 --- a/watchface-complication/watchface-editable.cc +++ b/watchface-complication/watchface-editable.cc @@ -241,16 +241,6 @@ extern "C" EXPORT_API int watchface_editable_get_cur_data_idx( return WATCHFACE_COMPLICATION_ERROR_NONE; } -extern "C" EXPORT_API int watchface_editable_set_cur_data_idx( - const watchface_editable_h handle, int idx) { - if (handle == NULL) - return WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER; - - IEditable* ie = static_cast(handle); - ie->SetCurDataIdx(idx); - return WATCHFACE_COMPLICATION_ERROR_NONE; -} - extern "C" EXPORT_API int watchface_editable_get_cur_data( const watchface_editable_h handle, bundle **cur_data) { if (handle == NULL || cur_data == NULL)