Remove unused source file - setting-common-draw-widget.cpp 60/200960/10
authorTomasz Jeschke <t.jeschke@samsung.com>
Wed, 6 Mar 2019 11:47:57 +0000 (12:47 +0100)
committerTomasz Jeschke <t.jeschke@samsung.com>
Thu, 7 Mar 2019 16:28:42 +0000 (17:28 +0100)
Change-Id: I839dac41f700053a29db99d9a6eceb882bfcbb39

src/setting-common-draw-genlist.cpp
src/setting-common-draw-widget.cpp [deleted file]
src/setting-common-draw-widget.h

index 8f75e9f..3199d53 100644 (file)
@@ -165,7 +165,8 @@ static Evas_Object *__add_left_default(GenGroupItemData *item_data,
 
        if (SwallowType::ICON_IMAGE == item_data->swallow_type) {
                Evas_Object *icon = elm_icon_add(parent);
-               setting_decorate_image_RGBA(icon, 15, 41, 73, 255);
+               if (icon)
+                       evas_object_color_set(icon, 15, 41, 73, 255);
                elm_image_file_set(icon, item_data->l_swallow_path.c_str(), NULL);
                evas_object_size_hint_aspect_set(icon,
                                                                                 EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
@@ -174,7 +175,8 @@ static Evas_Object *__add_left_default(GenGroupItemData *item_data,
                Evas_Object *c = elm_image_add(parent);
 
                elm_image_file_set(c, item_data->l_swallow_path.c_str(), NULL);
-               setting_decorate_image_RGBA(c, 14, 41, 73, 255);
+               if (c)
+                       evas_object_color_set(c, 14, 41, 73, 255);
                evas_object_size_hint_align_set(c, EVAS_HINT_FILL,
                                                                                EVAS_HINT_FILL);
                evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND,
diff --git a/src/setting-common-draw-widget.cpp b/src/setting-common-draw-widget.cpp
deleted file mode 100644 (file)
index 73f0cfb..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2018 Samsung Electronics Co., Ltd
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "setting-common-draw-widget.h"
-#include <efl_extension.h>
-#include <app.h>
-
-#define DEMO_STEP 0.8
-typedef struct _setting_gif_data {
-       Ecore_Timer *update_timer;
-       const char      **png_list;
-} setting_gif_data;
-
-void
-setting_decorate_image_RGBA(Evas_Object *obj, int r, int g, int b, int a)
-{
-       if (obj)
-               evas_object_color_set(obj, r, g, b, a);
-}
index ca2fbf7..0977344 100755 (executable)
@@ -49,10 +49,9 @@ GenGroupItemData *createGendialGroupItem(
        void *sel_data, SwallowType swallow_type, int chk_status, const std::string &keyStr,
        const std::string &sub_desc, SettingCallback chk_change_cb);
 
+/* TODO remove setting_update_gl_item_chk_status after setting-common-draw-genlist.cpp is removed */
+
 extern void setting_update_gl_item_chk_status(
        GenGroupItemData *item_data, int status);
 
-extern void setting_decorate_image_RGBA(Evas_Object *obj, int r, int g, int b,
-                                                                               int a);
-
 #endif         /* __SETTING_COMMON_DRAW_WIDGET_H__ */