Remove appdata structure
[apps/native/sample/sample-core-components.git] / rule / project / src / view.c
index 97121d6..2f6a4d9 100644 (file)
@@ -25,7 +25,6 @@ static struct view_info {
 
 /*
  * @brief: Create Essential Object window, conformant and layout
- * @param[ad]: Structure has some important information for managing this application
  */
 void view_create(void)
 {
@@ -49,7 +48,7 @@ void view_create(void)
 
 /*
  * @brief: Make a basic window named package
- * @param[package]: Name of the window
+ * @param[pkg_name]: Name of the window
  */
 Evas_Object *view_create_win(const char *pkg_name)
 {
@@ -231,11 +230,7 @@ Evas_Object *view_create_layout_for_part(Evas_Object *parent, char *part, char *
  */
 void view_destroy(void *user_data)
 {
-       appdata_s *ad = NULL;
-
-       ad = user_data;
-       if (ad == NULL) {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to destroy data.");
+       if (s_info.win == NULL) {
                return;
        }