forked from enlightenment/efl
elementary: Remove logically dead code
Coverity reports that this is logically dead code. As we check the validity of 'model' above this function, then testing 'model' for validity again in this expression is just logically dead. Fixes Coverity CID1356617 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
30ab0a89be
commit
a89186069e
|
@ -102,7 +102,7 @@ _elm_fileselector_replace_model(Elm_Fileselector *fs, Elm_Fileselector_Data *sd,
|
||||||
|
|
||||||
if (model && path)
|
if (model && path)
|
||||||
{
|
{
|
||||||
sd->model = model ? eo_ref(model) : NULL;
|
sd->model = eo_ref(model);
|
||||||
eina_stringshare_replace(&sd->path, path);
|
eina_stringshare_replace(&sd->path, path);
|
||||||
_monitoring_start(fs, sd, sd->model);
|
_monitoring_start(fs, sd, sd->model);
|
||||||
/* TODO: sub directory should be monitored for expand mode */
|
/* TODO: sub directory should be monitored for expand mode */
|
||||||
|
|
Loading…
Reference in New Issue