rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=375f993f95fa6bd6f3140bbb61a2c12c608694e6

commit 375f993f95fa6bd6f3140bbb61a2c12c608694e6
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Dec 24 14:56:12 2015 +0200

    refactor: remove unused functions
---
 src/bin/ui/demo_group.c           |  8 ------
 src/bin/ui/demo_group.h           |  6 -----
 src/bin/ui/editors/image_editor.c | 41 ------------------------------
 src/bin/ui/editors/image_editor.h | 16 ------------
 src/bin/ui/property_group.h       | 53 ---------------------------------------
 src/bin/ui/workspace/workspace.c  | 42 -------------------------------
 src/bin/ui/workspace/workspace.h  | 50 ------------------------------------
 7 files changed, 216 deletions(-)

diff --git a/src/bin/ui/demo_group.c b/src/bin/ui/demo_group.c
index 91eb02b..9916423 100644
--- a/src/bin/ui/demo_group.c
+++ b/src/bin/ui/demo_group.c
@@ -234,11 +234,3 @@ demo_group_add(Group *group)
 
    return pl->layout;
 }
-
-void
-demo_group_part_select(Evas_Object *obj, Part_ *part __UNUSED__)
-{
-   Part_Demo_List *pl = evas_object_data_get(obj, DEMO_GROUP_DATA);
-
-   assert(pl != NULL);
-}
diff --git a/src/bin/ui/demo_group.h b/src/bin/ui/demo_group.h
index a3bf92b..5609cce 100644
--- a/src/bin/ui/demo_group.h
+++ b/src/bin/ui/demo_group.h
@@ -43,10 +43,4 @@
 Evas_Object *
 demo_group_add(Group *group);
 
-/**
- * @ingroup Partlist
- */
-void
-demo_group_part_select(Evas_Object *obj, Part_ *part);
-
 #endif /* DEMO_GROUP_H */
diff --git a/src/bin/ui/editors/image_editor.c 
b/src/bin/ui/editors/image_editor.c
index 42f6522..0b24ce9 100644
--- a/src/bin/ui/editors/image_editor.c
+++ b/src/bin/ui/editors/image_editor.c
@@ -595,47 +595,6 @@ image_editor_window_add(Image_Editor_Mode mode)
    return img_edit->layout;
 }
 
-Eina_Bool
-image_editor_file_choose(Evas_Object *win, const char *selected)
-{
-   Elm_Object_Item *grid_item = NULL;
-   const Item* it = NULL;
-   Image_Editor *img_edit = NULL;
-
-   if (!selected) return false;
-
-   assert(win != NULL);
-
-   img_edit = evas_object_data_get(win, IMG_EDIT_KEY);
-
-   assert(img_edit != NULL);
-
-   grid_item = elm_gengrid_first_item_get(img_edit->gengrid);
-
-   while(grid_item)
-     {
-        const char* item_style =
-           elm_gengrid_item_item_class_get(grid_item)->item_style;
-        if (!strcmp(item_style, "group_index"))
-          {
-             grid_item = elm_gengrid_item_next_get(grid_item);
-             continue;
-          }
-
-        it = elm_object_item_data_get(grid_item);
-        if (!it) return false;
-        if (!strcmp(it->image_name, selected))
-          {
-             elm_gengrid_item_selected_set(grid_item, true);
-             elm_gengrid_item_bring_in(grid_item,
-                                       ELM_GENGRID_ITEM_SCROLLTO_MIDDLE);
-             return true;
-          }
-        grid_item = elm_gengrid_item_next_get(grid_item);
-     }
-   return false;
-}
-
 #undef ITEM_WIDTH
 #undef ITEM_HEIGHT
 #undef IMG_EDIT_KEY
diff --git a/src/bin/ui/editors/image_editor.h 
b/src/bin/ui/editors/image_editor.h
index d9d8043..769b878 100644
--- a/src/bin/ui/editors/image_editor.h
+++ b/src/bin/ui/editors/image_editor.h
@@ -53,20 +53,4 @@ typedef enum {
 Evas_Object *
 image_editor_window_add(Image_Editor_Mode mode);
 
-/**
- * This function will select the image by it's name. This function is very 
useful
- * with image property (setting another image).
- *
- * @param win Pointer to inwin object, which was created with
- * image_editor_add function.
- * @param selected Name of selected image. If selected param is NULL, this
- * function do nothing.
- *
- * @return EINA_TRUE if successful, EINA_FALSE otherwise.
- *
- * @ingroup ImageEditor
- */
-Eina_Bool
-image_editor_file_choose(Evas_Object *win, const char *selected);
-
 #endif /*IMAGE_EDITOR_H*/
diff --git a/src/bin/ui/property_group.h b/src/bin/ui/property_group.h
deleted file mode 100644
index 650fcf2..0000000
--- a/src/bin/ui/property_group.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Edje Theme Editor
- * Copyright (C) 2013-2014 Samsung Electronics.
- *
- * This file is part of Edje Theme Editor.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
- */
-
-#ifndef UI_PROPERTY_1_H
-#define UI_PROPERTY_1_H
-
-/**
- * @defgroup Property Property
- * @ingroup Block
- *
- * This widget designed for show group and part details.
- */
-
-#ifndef HAVE_ENVENTOR
-#include "syntax_color.h"
-#endif
-#include "widget_manager.h"
-#include "workspace.h"
-
-
-Evas_Object *
-ui_property_group_add(Evas_Object *parent);
-
-void
-ui_property_group_set(Evas_Object *parent, Group *group);
-
-void
-ui_property_group_unset(Evas_Object *parent);
-
-void
-ui_property_part_set(Evas_Object *parent, Part_ *part);
-
-void
-ui_property_part_state_set(Evas_Object *parent, Part_ *part);
-
-
-#endif /* UI_PROPERTY_1_H */
diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index b50b7e2..3d4a676 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1636,14 +1636,6 @@ workspace_add(Evas_Object *parent, Group *group)
    return obj;
 }
 
-Evas_Object *
-ws_groupedit_get(Evas_Object *obj)
-{
-   WS_DATA_GET(obj, sd);
-
-   return sd->groupedit;
-}
-
 void
 workspace_group_navigator_update_part(Evas_Object *obj, Part_ *part)
 {
@@ -1715,28 +1707,6 @@ workspace_edit_object_soft_update(Evas_Object *obj)
 }
 
 Eina_Bool
-workspace_edit_object_part_state_set(Evas_Object *obj, Part_ *part)
-{
-   WS_DATA_GET(obj, sd);
-   assert(part != NULL);
-
-   TODO("fix state set from external sources");
-   return false;
-}
-
-Eina_Bool
-workspace_edit_object_visible_set(Evas_Object *obj,
-                                  const char *part,
-                                  Eina_Bool visible __UNUSED__)
-{
-   WS_DATA_GET(obj, sd);
-   assert(part != NULL);
-
-   //groupedit_part_visible_set(sd->groupedit, part);
-   return true;
-}
-
-Eina_Bool
 workspace_separate_mode_set(Evas_Object *obj, Eina_Bool separate)
 {
    Evas_Object *follow;
@@ -1856,18 +1826,6 @@ workspace_object_area_visible_get(Evas_Object *obj)
    return groupedit_part_object_area_visible_get(sd->groupedit);
 }
 
-Eina_Bool
-workspace_edit_object_part_item_selected_set(Evas_Object *obj,
-                                             Eina_Stringshare *item_name,
-                                             Eina_Bool selected)
-{
-   WS_DATA_GET(obj, sd);
-   assert(item_name != NULL);
-
-   groupedit_edit_object_part_item_selected_set(sd->groupedit, item_name, 
selected);
-   return true;
-}
-
 void
 workspace_part_add(Evas_Object *obj, Eina_Stringshare *part_name)
 {
diff --git a/src/bin/ui/workspace/workspace.h b/src/bin/ui/workspace/workspace.h
index 5abb362..100d59a 100644
--- a/src/bin/ui/workspace/workspace.h
+++ b/src/bin/ui/workspace/workspace.h
@@ -51,18 +51,6 @@ Evas_Object *
 workspace_add(Evas_Object *parent, Group *group);
 
 /**
- * Get the groupedit object, which loaded into workspace.
- *
- * @param obj The workspace object.
- *
- * @return The groupedit object or NULL if it didn't exist'.
- *
- * @ingroup Workspace
- */
-Evas_Object *
-ws_groupedit_get(Evas_Object *obj);
-
-/**
  * Update part info in part list
  *
  * @param obj The workspace object.
@@ -195,27 +183,6 @@ workspace_part_item_restack(Evas_Object *obj,
                             Eina_Stringshare *part_name,
                             Eina_Stringshare *part_item_name,
                             Eina_Stringshare *relative_part_item_name);
-/**
- *
- */
-Eina_Bool
-workspace_edit_object_part_state_set(Evas_Object *obj, Part_ *part);
-
-/**
- * Set a visibility for part of current groupedit object in the workspace.
- *
- * @param obj The workspace object
- * @param part The name of groupedit part to be showed of hided
- * @param visible Use EINA_TRUE to show, EINA_FALSE to hide part.
- *
- * @return EINA_TRUE, if it's showed/hided, EINA_FALSE otherwise
- *
- * @ingroup Workspace
- */
-Eina_Bool
-workspace_edit_object_visible_set(Evas_Object *obj,
-                                  const char *part,
-                                  Eina_Bool visible);
 
 /**
  * Set zoom factor for view zoommed style in groupspace.
@@ -353,21 +320,4 @@ workspace_object_area_visible_set(Evas_Object *obj, 
Eina_Bool flag);
 Eina_Bool
 workspace_object_area_visible_get(Evas_Object *obj);
 
-/**
- * Change selection state for given item on workspace. If item should be
- * selected if will be highlighted, or unhighlighted in otherwise.
- *
- * @param obj The workspace object.
- * @param item_name The name of item, which selection should be changed.
- * @param selected If EINA_TRUE - item will be selected, otherwise unselected.
- *
- * @return EINA_FALSE on failure, EINA_TRUE on success.
- *
- * @ingroup Workspace
- */
-Eina_Bool
-workspace_edit_object_part_item_selected_set(Evas_Object *obj,
-                                             Eina_Stringshare *item_name,
-                                             Eina_Bool selected);
-
 #endif /* UI_WORKSPACE_H */

-- 


Reply via email to