rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=2afb28275e8e8668d303c31be2d6ed5ac2f89970

commit 2afb28275e8e8668d303c31be2d6ed5ac2f89970
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Dec 2 14:32:15 2015 +0200

    groupedit: delete deadly API's
    
    Change-Id: Id3752ffeb0bd9ed797ae7d7e8fe8bb2ba5220dd4
---
 src/bin/ui/workspace/groupedit.c | 69 ----------------------------------------
 src/bin/ui/workspace/groupedit.h | 50 -----------------------------
 src/bin/ui/workspace/workspace.c | 40 -----------------------
 src/bin/ui/workspace/workspace.h | 25 ---------------
 4 files changed, 184 deletions(-)

diff --git a/src/bin/ui/workspace/groupedit.c b/src/bin/ui/workspace/groupedit.c
index 716a694..5cda0f2 100644
--- a/src/bin/ui/workspace/groupedit.c
+++ b/src/bin/ui/workspace/groupedit.c
@@ -357,75 +357,6 @@ groupedit_edit_object_part_state_set(Evas_Object *obj, 
Part_ *part)
    return ret;
 }
 
-Eina_Bool
-groupedit_edit_object_part_state_add(Evas_Object *obj, const char *part,
-                                     const char *state, double value)
-{
-   Eina_Bool ret;
-   //const char *img = NULL;
-   WS_GROUPEDIT_DATA_GET(obj, sd);
-
-   assert(part != NULL);
-   assert(state != NULL);
-   assert(edje_edit_part_exist(sd->group->edit_object, part));
-   assert(!edje_edit_state_exist(sd->group->edit_object, part, state, value));
-
-   ret = edje_edit_state_add(sd->group->edit_object, part, state, value);
-   ret &= edje_edit_part_selected_state_set(sd->group->edit_object, part, 
state, value);
-   TODO("WTF?");
-   //img = edje_edit_state_image_get(sd->group->edit_object, part, "default", 
0.0);
-   //edje_edit_state_image_set(sd->group->edit_object, part, state, value, 
img);
-
-   if (ret)
-     {
-        evas_object_smart_changed(sd->obj);
-     }
-   return ret;
-}
-
-Eina_Bool
-groupedit_edit_object_part_state_copy(Evas_Object *obj, const char *part,
-                                      const char *state_from, double 
value_from,
-                                      const char *state_to, double value_to)
-{
-   Eina_Bool ret;
-   //const char *img = NULL;
-   WS_GROUPEDIT_DATA_GET(obj, sd);
-
-   assert(part != NULL);
-   assert(state_from != NULL);
-   assert(state_to != NULL);
-
-   ret = edje_edit_state_copy(sd->group->edit_object, part, state_from, 
value_from,
-                              state_to, value_to);
-   ret &= edje_edit_part_selected_state_set(sd->group->edit_object, part, 
state_to, value_to);
-   TODO("WTF?");
-   //img = edje_edit_state_image_get(sd->group->edit_object, part, state_from, 
value_from);
-   //edje_edit_state_image_set(sd->group->edit_object, part, state_to, 
value_to, img);
-
-   if (ret)
-     {
-        evas_object_smart_changed(sd->obj);
-     }
-   return ret;
-}
-
-Eina_Bool
-groupedit_edit_object_part_state_del(Evas_Object *obj, const char *part,
-                                     const char *state, double value)
-{
-   Eina_Bool ret;
-   WS_GROUPEDIT_DATA_GET(obj, sd);
-
-   assert(part != NULL);
-   assert(state != NULL);
-
-   ret = edje_edit_state_del(sd->group->edit_object, part, state, value);
-
-   evas_object_smart_changed(sd->obj);
-   return ret;
-}
-
 Evas_Object *
 groupedit_part_object_area_get(Evas_Object *obj)
 {
diff --git a/src/bin/ui/workspace/groupedit.h b/src/bin/ui/workspace/groupedit.h
index d7445d2..869b604 100644
--- a/src/bin/ui/workspace/groupedit.h
+++ b/src/bin/ui/workspace/groupedit.h
@@ -160,56 +160,6 @@ Eina_Bool
 groupedit_edit_object_part_state_set(Evas_Object *obj, Part_ *part);
 
 /**
- * Create new state for the give part.
- *
- * @param obj The groupedit object,
- * @param part The name of the part to add the new state,
- * @param state Name for the new state,
- * @param value The state value.
- *
- * @return EINA_TRUE on success or EINA_FALSE, on errors.
- *
- * @ingroup Groupedit
- */
-Eina_Bool
-groupedit_edit_object_part_state_add(Evas_Object *obj, const char *part,
-                                     const char *state, double value);
-
-/**
- * Copy new state for the give part, from another state of this part.
- *
- * @param obj The groupedit object,
- * @param part Part that contain state.
- * @param state_from to copy from (not including state value).
- * @param value_from The value of the state to copy from.
- * @param state_to copy into (not including state value).
- * @param value_to The value of the state to copy into.
- *
- * @return EINA_TRUE on success or EINA_FALSE, on errors.
- *
- * @ingroup Groupedit
- */
-Eina_Bool
-groupedit_edit_object_part_state_copy(Evas_Object *obj, const char *part,
-                                     const char *state_from, double value_from,
-                                     const char *state_to, double value_to);
-/**
- * Delete the given part state from the edje edit object.
- *
- * @param obj The groupedit object,
- * @param part Part that contain state,
- * @param state The current name of the state,
- * @param value The state value.
- *
- * @return EINA_TRUE on success or EINA_FALSE, on errors.
- *
- * @ingroup Groupedit
- */
-Eina_Bool
-groupedit_edit_object_part_state_del(Evas_Object *obj, const char *part,
-                                     const char *state, double value);
-
-/**
  * Get the object with the object area geometry.
  *
  * @param obj The groupedit object.
diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 96f783d..9fefc4b 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1689,18 +1689,6 @@ workspace_edit_object_part_state_set(Evas_Object *obj, 
Part_ *part)
 }
 
 Eina_Bool
-workspace_edit_object_part_state_add(Evas_Object *obj, const char *part,
-                                     const char *state, double value)
-{
-   WS_DATA_GET(obj, sd);
-   assert(part != NULL);
-   assert(state != NULL);
-
-   groupedit_edit_object_part_state_add(sd->groupedit, part, state, value);
-   return true; /* not check anyway */
-}
-
-Eina_Bool
 workspace_edit_object_part_restack(Evas_Object *obj,
                                    const char *part,
                                    const char *rel_part,
@@ -1716,34 +1704,6 @@ workspace_edit_object_part_restack(Evas_Object *obj,
       return groupedit_edit_object_part_move_below(sd->groupedit, part, 
rel_part);
 }
 
-
-Eina_Bool
-workspace_edit_object_part_state_copy(Evas_Object *obj, const char *part,
-                                     const char *state_from, double value_from,
-                                     const char *state_to, double value_to)
-{
-   WS_DATA_GET(obj, sd);
-   assert(part != NULL);
-   assert(state_from != NULL);
-   assert(state_to != NULL);
-
-   groupedit_edit_object_part_state_copy(sd->groupedit, part, state_from,
-                                        value_from, state_to, value_to);
-   return true; /* not check anyway */
-}
-
-Eina_Bool
-workspace_edit_object_part_state_del(Evas_Object *obj, const char *part,
-                                     const char *state, double value)
-{
-   WS_DATA_GET(obj, sd);
-   assert(part != NULL);
-   assert(state != NULL);
-
-   groupedit_edit_object_part_state_del(sd->groupedit, part, state, value);
-   return true; /* not check anyway */
-}
-
 Eina_Bool
 workspace_edit_object_visible_set(Evas_Object *obj,
                                   const char *part,
diff --git a/src/bin/ui/workspace/workspace.h b/src/bin/ui/workspace/workspace.h
index 5e10802..cc72415 100644
--- a/src/bin/ui/workspace/workspace.h
+++ b/src/bin/ui/workspace/workspace.h
@@ -161,31 +161,6 @@ workspace_edit_object_part_restack(Evas_Object *obj,
 Eina_Bool
 workspace_edit_object_part_state_set(Evas_Object *obj, Part_ *part);
 
-Eina_Bool
-workspace_edit_object_part_state_add(Evas_Object *obj, const char *part,
-                                     const char *state, double value);
-/**
- * Copy new state for the give part, from another state of this part.
- *
- * @param obj The groupedit object,
- * @param part Part that contain state.
- * @param state_from to copy from (not including state value).
- * @param value_from The value of the state to copy from.
- * @param state_to copy into (not including state value).
- * @param value_to The value of the state to copy into.
- *
- * @return EINA_TRUE on success or EINA_FALSE, on errors.
- *
- * @ingroup Workspace
- */
-Eina_Bool
-workspace_edit_object_part_state_copy(Evas_Object *obj, const char *part,
-                                     const char *state_from, double value_from,
-                                     const char *state_to, double value_to);
-
-Eina_Bool
-workspace_edit_object_part_state_del(Evas_Object *obj, const char *part,
-                                     const char *state, double value);
 /**
  * Set a visibility for part of current groupedit object in the workspace.
  *

-- 


Reply via email to