Removes set cur idx api 66/178166/2
authorhyunho <hhstark.kang@samsung.com>
Tue, 8 May 2018 10:56:39 +0000 (19:56 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Tue, 8 May 2018 10:59:00 +0000 (10:59 +0000)
editable's cur idx should be updated by editor

Change-Id: Ie80de8e1366f1675ae6cce8d46bc2ed9498bd328
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watchface-complication/include/watchface-editable.h
watchface-complication/watchface-editable.cc

index f6a6440..03fab21 100644 (file)
@@ -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,
index ed91d18..0731dea 100644 (file)
@@ -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<IEditable*>(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)