From 2f60b3930d4dbc244c76e685ced506ba21043c5e Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Thu, 18 Oct 2012 09:11:25 +0000 Subject: [PATCH] ecore_file: Don't check for file existance This isn't needed, as inotify_add_watch will check this. SVN revision: 78168 --- .../src/lib/ecore_file/ecore_file_monitor_inotify.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c index 30226d3a3a..7701e1f7e2 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c @@ -128,16 +128,8 @@ ecore_file_monitor_inotify_add(const char *path, _monitors = ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em))); - if (ecore_file_exists(em->path)) - { - if (!_ecore_file_monitor_inotify_monitor(em, em->path)) - return NULL; - } - else - { - ecore_file_monitor_inotify_del(em); - return NULL; - } + if (!_ecore_file_monitor_inotify_monitor(em, em->path)) + return NULL; return em; }