Remove noti_ex_item_checkbox_is_checked api 87/214787/3
authormk5004.lee <mk5004.lee@samsung.com>
Thu, 26 Sep 2019 08:45:41 +0000 (17:45 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Fri, 4 Oct 2019 05:52:16 +0000 (14:52 +0900)
Change-Id: I5165fa236026ce2867a6cf6543b3c0fd37a7ad17
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification-ex/api/notification_ex_checkbox.h
notification-ex/stub.cc

index d5e4ea6..2263f13 100644 (file)
@@ -173,30 +173,6 @@ int noti_ex_item_checkbox_get_check_state(noti_ex_item_h handle, bool *checked);
 int noti_ex_item_checkbox_set_check_state(noti_ex_item_h handle, bool checked);
 
 /**
- * @brief Gets the check state of a checkbox.
- * @since_tizen 5.5
- * @param[in] handle The notification_ex item handle
- * @param[out] checked The check state of a checkbox
- * @return #NOTI_EX_ERROR_NONE On success, other value on failure
- * @retval #NOTI_EX_ERROR_NONE Success
- * @retval #NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- * @see #noti_ex_item_h
- * @see noti_ex_item_checkbox_create()
- * @par Sample code:
- * @code
-#include <notification_ex.h>
-
-{
-       int ret;
-       bool checked;
-
-       ret = noti_ex_item_checkbox_is_checked(checkbox_item, &checked);
-}
- * @endcode
- */
-int noti_ex_item_checkbox_is_checked(noti_ex_item_h handle, bool *checked);
-
-/**
  * @}
  */
 
index ac66424..70fcba7 100644 (file)
@@ -627,23 +627,6 @@ extern "C" EXPORT_API int noti_ex_item_checkbox_set_multi_language_title(
   return NOTI_EX_ERROR_NONE;
 }
 
-extern "C" EXPORT_API int noti_ex_item_checkbox_is_checked(noti_ex_item_h handle,
-    bool *checked) {
-  if (handle == nullptr || checked == nullptr) {
-    LOGE("Invalid parameter");
-    return NOTI_EX_ERROR_INVALID_PARAMETER;
-  }
-  Handle* h = static_cast<Handle*>(handle);
-  if (!h->IsValidType(AbstractItem::CheckBox)) {
-    LOGE("Invalid handle type");
-    return NOTI_EX_ERROR_INVALID_PARAMETER;
-  }
-  CheckBoxItem* p = static_cast<CheckBoxItem*>(h->Get());
-  *checked = p->IsChecked();
-
-  return NOTI_EX_ERROR_NONE;
-}
-
 extern "C" EXPORT_API int noti_ex_item_checkbox_get_check_state(
     noti_ex_item_h handle, bool *checked) {
   if (handle == nullptr || checked == nullptr) {