Delete notification_setting_set_package_name API() 27/94827/1
authorseungha.son <seungha.son@samsung.com>
Tue, 1 Nov 2016 10:27:41 +0000 (19:27 +0900)
committerseungha.son <seungha.son@samsung.com>
Tue, 1 Nov 2016 10:31:36 +0000 (19:31 +0900)
    - It is dangerous that package_name is changed.
      If package name is changed, unexpected problems may arise.

Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: Ic2939c8385cc5b639a14a8ee45e3e1f89f83798c

include/notification_setting_internal.h
src/notification_setting.c

index 9320bb7..f3bd201 100644 (file)
@@ -226,41 +226,6 @@ int notification_setting_get_package_name(notification_setting_h setting, char *
 
 /*
  * @internal
- * @brief Sets package name to notification setting handle.
- * @since_tizen @if wearable 2.3.1 @elseif mobile 2.3 @endif
- * @param[in] setting  The notification setting handle
- * @param[in] value    The package name
- * @return #NOTIFICATION_ERROR_NONE on success,
- *         otherwise any other value on failure
- * @retval #NOTIFICATION_ERROR_NONE                    Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER       Invalid parameter
- * @par sample code:
- * @code
-#include <notification_setting_internal.h>
-...
-{
-       int noti_err = 0;
-       char *package_name = "org.tizen.example";
-       notification_setting_h setting = NULL;
-
-       ...
-
-       noti_err = notification_setting_set_package_name(setting, package_name);
-       if (noti_err != NOTIFICATION_ERROR_NONE) {
-               return;
-       }
-
-       notification_setting_free_notification(setting);
-
-       return 0;
-
-}
- * @endcode
- */
-int notification_setting_set_package_name(notification_setting_h setting, char *value);
-
-/*
- * @internal
  * @brief Gets value which whether allow notification from individual applications.
  * @since_tizen @if wearable 2.3.1 @elseif mobile 2.3 @endif
  * @param[in] setting  The notification setting handle
index 013efdd..6116e7b 100755 (executable)
@@ -117,22 +117,6 @@ EXPORT_API int notification_setting_get_package_name(notification_setting_h sett
        return NOTIFICATION_ERROR_NONE;
 }
 
-EXPORT_API int notification_setting_set_package_name(notification_setting_h setting, char *value)
-{
-
-       if (setting == NULL || value == NULL) {
-               NOTIFICATION_ERR("Invalid parameter");
-               return NOTIFICATION_ERROR_INVALID_PARAMETER;
-       }
-
-       if (setting->package_name != NULL)
-               free(setting->package_name);
-
-       setting->package_name = SAFE_STRDUP(value);
-
-       return NOTIFICATION_ERROR_NONE;
-}
-
 EXPORT_API int notification_setting_get_allow_to_notify(notification_setting_h setting, bool *value)
 {
        if (setting == NULL || value == NULL) {