ecore_file: Don't check for file existance

This isn't needed, as inotify_add_watch will check this.

SVN revision: 78168
This commit is contained in:
Sebastian Dransfeld 2012-10-18 09:11:25 +00:00
parent 2a3cb2d1c9
commit 2f60b3930d
1 changed files with 2 additions and 10 deletions

View File

@ -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;
}