netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=15c19acf1a622d21099fc697237f33395ca697f3

commit 15c19acf1a622d21099fc697237f33395ca697f3
Author: Al Poole <nets...@gmail.com>
Date:   Sat Sep 16 22:30:29 2017 +0100

    filepanel: remove uneccessary methods.
---
 src/bin/edi_filepanel.c            | 47 --------------------------------------
 src/bin/edi_filepanel.h            | 16 -------------
 src/bin/edi_main.c                 |  4 ----
 src/bin/screens/edi_file_screens.c |  2 --
 4 files changed, 69 deletions(-)

diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c
index bfced4f..3975608 100644
--- a/src/bin/edi_filepanel.c
+++ b/src/bin/edi_filepanel.c
@@ -210,7 +210,6 @@ _item_menu_scm_add_cb(void *data, Evas_Object *obj 
EINA_UNUSED,
    sd = data;
 
    edi_scm_add(sd->path);
-   edi_filepanel_update_path(sd->path);
 }
 
 static void
@@ -228,8 +227,6 @@ _item_menu_scm_del_do_cb(void *data)
      edi_scm_del(sd->path);
    else
      ecore_file_unlink(sd->path);
-
-   edi_filepanel_update_path(sd->path);
 }
 
 static void
@@ -709,48 +706,6 @@ _file_listing_fill(Edi_Dir_Data *dir, Elm_Object_Item 
*parent_it)
 }
 
 static void
-_edi_filepanel_update_dir(const char *directory)
-{
-   Eina_List *files;
-   char *path;
-   char *file;
-
-   files = ecore_file_ls(directory);
-
-   EINA_LIST_FREE(files, file)
-     {
-        if (file[0] != '.')
-          {
-             path = edi_path_append(directory, file);
-             if (ecore_file_is_dir(path))
-               _edi_filepanel_update_dir(path);
-             else
-               edi_filepanel_update_path(path);
-             free(path);
-          }
-        free(file);
-     }
-
-   if (files)
-     eina_list_free(files);
-}
-
-void
-edi_filepanel_update_all(void)
-{
-  _edi_filepanel_update_dir(edi_project_get());
-}
-
-void edi_filepanel_update_path(const char *path)
-{
-   Elm_Object_Item *item = _file_listing_item_find(path);
-   if (!item)
-     return;
-
-   elm_genlist_item_update(item);
-}
-
-static void
 _file_listing_updated(void *data EINA_UNUSED, int type EINA_UNUSED,
                       void *event EINA_UNUSED)
 {
@@ -774,8 +729,6 @@ _file_listing_updated(void *data EINA_UNUSED, int type 
EINA_UNUSED,
      _file_listing_item_delete(ev->filename);
    else
     DBG("Ignoring file update event for %s", ev->filename);
-
-   edi_filepanel_update_path(ev->filename);
 }
 
 /* Panel filtering */
diff --git a/src/bin/edi_filepanel.h b/src/bin/edi_filepanel.h
index 046aeae..83e08f7 100644
--- a/src/bin/edi_filepanel.h
+++ b/src/bin/edi_filepanel.h
@@ -59,22 +59,6 @@ const char *edi_filepanel_selected_path_get(Evas_Object 
*obj);
 void edi_filepanel_select_path(const char *path);
 
 /**
- * Notify a file change has occurred to trigger an update to item content.
- *
- * @param path The path of the file to be updated in the file panel.
- *
- * @ingroup UI
- */
-void edi_filepanel_update_path(const char *path);
-
-/**
- * Notify filepanel to update all file items.
- *
- * @ingroup UI
- */
-void edi_filepanel_update_all(void);
-
-/**
  * Initialise a file panel search.
  *
  * @ingroup UI
diff --git a/src/bin/edi_main.c b/src/bin/edi_main.c
index 70843e7..cf48f3c 100644
--- a/src/bin/edi_main.c
+++ b/src/bin/edi_main.c
@@ -1003,7 +1003,6 @@ _edi_menu_scm_init_cb(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED,
    edi_consolepanel_show();
    edi_scm_git_new();
    edi_scm_init();
-   edi_filepanel_update_all();
    _edi_icon_update();
 }
 
@@ -1025,7 +1024,6 @@ static void
 _edi_scm_stash_do_cb(void *data EINA_UNUSED)
 {
    edi_scm_stash();
-   edi_filepanel_update_all();
 }
 
 static void
@@ -1052,7 +1050,6 @@ _edi_menu_scm_pull_cb(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED,
    edi_consolepanel_clear();
    edi_consolepanel_show();
    edi_scm_pull();
-   edi_filepanel_update_all();
 }
 
 static void
@@ -1068,7 +1065,6 @@ _edi_menu_scm_push_cb(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED,
    edi_consolepanel_clear();
    edi_consolepanel_show();
    edi_scm_push();
-   edi_filepanel_update_all();
 }
 
 static void
diff --git a/src/bin/screens/edi_file_screens.c 
b/src/bin/screens/edi_file_screens.c
index 05e55ff..ebe18a6 100644
--- a/src/bin/screens/edi_file_screens.c
+++ b/src/bin/screens/edi_file_screens.c
@@ -157,8 +157,6 @@ _edi_file_screens_rename_cb(void *data,
           ecore_file_mv(existing_path, path);
         else
           edi_scm_move(existing_path, path);
-
-        edi_filepanel_update_path(path);
      }
 
    evas_object_del(_popup);

-- 


Reply via email to