Remove some unnecessary codes
authorjc815.lee <jc815.lee@samsung.com>
Thu, 22 Aug 2013 09:19:11 +0000 (18:19 +0900)
committerjc815.lee <jc815.lee@samsung.com>
Thu, 22 Aug 2013 09:19:43 +0000 (18:19 +0900)
[model]
[binary_type]
[customer]
[issue#]
[problem]
[cause]
[solution]
[team]
[request]
[horizontal_expansion]

Change-Id: I8f17accde6f24ee07838d1fb3e03b8bf89bcae79
Signed-off-by: jc815.lee <jc815.lee@samsung.com>
privacy-popup/inc/privacy-popup.h
privacy-popup/src/privacy-popup.c

index 3dcd2af..3f31a5c 100644 (file)
@@ -45,8 +45,6 @@
 
 typedef struct appdata_t {
     ui_gadget_h ug;
-       Evas_Object *conform;
-    Evas_Object *main_layout;
        Evas_Object *win;
        int exit_value;
 } appdata;
index e3aaae2..ee9c29c 100644 (file)
@@ -33,7 +33,6 @@ static void destroy_privacy_popup()
 }
 
 static void layout_cb(ui_gadget_h ug, enum ug_mode mode, void *priv) {
-       LOGD("layout_cb");
     Evas_Object *base, *win;
     appdata *mydata;
 
@@ -63,7 +62,6 @@ static void layout_cb(ui_gadget_h ug, enum ug_mode mode, void *priv) {
 }
 
 static void result_cb(ui_gadget_h ug, service_h *result, void *priv) {
-    LOGD("result_cb");
 
     if (!ug || !priv)
         return;
@@ -96,7 +94,6 @@ static void result_cb(ui_gadget_h ug, service_h *result, void *priv) {
 }
 
 static void destroy_cb(ui_gadget_h ug, void *priv) {
-    LOGD("destroy_cb");
 
     if (!ug || !priv)
        {
@@ -131,7 +128,6 @@ static void destroy_cb(ui_gadget_h ug, void *priv) {
 }
 
 ui_gadget_h create_ug(appdata *data) {
-       LOGD("create_ug");
 
     struct ug_cbs cbs = { 0, };
     cbs.layout_cb = layout_cb;
@@ -144,6 +140,7 @@ ui_gadget_h create_ug(appdata *data) {
        service_add_extra_data(service, "privacy_category", "service");
        service_add_extra_data(service, KEY_PACKAGE_ID, package_id);
 
+    UG_INIT_EFL(ad.win, UG_OPT_INDICATOR_DISABLE);
     data->ug = ug_create(NULL, "setting-privacy-efl", UG_MODE_FULLVIEW, service, &cbs);
        service_destroy(service);
 
@@ -158,7 +155,6 @@ static void on_done(void *data, Evas_Object *obj, void *event_info) {
     (void) data;
     (void) obj;
     (void) event_info;
-       LOGD("on_done");
        destroy_privacy_popup();
 }
 
@@ -171,7 +167,6 @@ Evas_Object* create_win(char* name)
        }
 
        elm_win_title_set(win, PACKAGE);
-       evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
        ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
        evas_object_resize(win, w, h);
        return win;
@@ -201,7 +196,6 @@ Evas_Object* create_layout(Evas_Object *parent)
 }
 
 EAPI_MAIN int elm_main() {
-       LOGD("elm_main");
 
        Evas_Object *win = create_win(PACKAGE);
        if(!win){
@@ -210,25 +204,11 @@ EAPI_MAIN int elm_main() {
        }
        elm_win_conformant_set(win, EINA_TRUE);
 
-       Evas_Object *conform = create_conform(win);
-       if(!conform){
-               LOGE("failed to create window");
-               return 0;
-       }
-
-       Evas_Object *main_layout = create_layout(conform);
-       if(!conform){
-               LOGE("failed to create layout");
-               return 0;
-       }
-
-    UG_INIT_EFL(win, UG_OPT_INDICATOR_ENABLE);
        elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_HIDE);
+
     evas_object_show(win);
 
        ad.win = win;
-       ad.conform = conform;
-       ad.main_layout = main_layout;
        ad.exit_value = -1;
 
     return 0;
@@ -299,8 +279,6 @@ static int app_reset(bundle *b, void *data)
 }
 
 int main(int argc, char **argv) {
-       elm_init(argc, argv);
-
        struct appcore_ops ops = {
                .create = app_create,
                .terminate = app_terminate,