summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-04-17 13:35:38 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-20 12:20:48 +0200
commit000464c8424a17f2d22ebe54befd7a5190a1c538 (patch)
tree5b4cad5ab986bf0675a28bd0bf6224aa6c89bd73
parent7beee62d6a9b11a70c88163334ce3a126a1b1242 (diff)
exactness: remove unused code
We no longer support the old .rec format and we can always expect the file to be exu. Coverity found this block to be always true so the else part could not be reached. CID: 1421996 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11723
-rw-r--r--src/bin/exactness/exactness.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/bin/exactness/exactness.c b/src/bin/exactness/exactness.c
index c99fceeb99..715ad275be 100644
--- a/src/bin/exactness/exactness.c
+++ b/src/bin/exactness/exactness.c
@@ -218,10 +218,8 @@ _run_command_prepare(const List_Entry *ent, char *buf)
218 Eina_Strbuf *sbuf; 218 Eina_Strbuf *sbuf;
219 const char *base_dir; 219 const char *base_dir;
220 Eina_List *itr; 220 Eina_List *itr;
221 Eina_Bool is_exu;
222 EINA_LIST_FOREACH(_base_dirs, itr, base_dir) 221 EINA_LIST_FOREACH(_base_dirs, itr, base_dir)
223 { 222 {
224 is_exu = EINA_TRUE;
225 sprintf(scn_path, "%s/%s.exu", base_dir, ent->name); 223 sprintf(scn_path, "%s/%s.exu", base_dir, ent->name);
226 if (ecore_file_exists(scn_path)) goto ok; 224 if (ecore_file_exists(scn_path)) goto ok;
227 } 225 }
@@ -241,20 +239,12 @@ ok:
241 _stabilize_shots ? "--stabilize-shots " : "", 239 _stabilize_shots ? "--stabilize-shots " : "",
242 scn_path 240 scn_path
243 ); 241 );
244 if (is_exu) 242
245 { 243 if (_mode == RUN_PLAY)
246 if (_mode == RUN_PLAY) 244 eina_strbuf_append_printf(sbuf, "-o '%s/%s/%s.exu' ", _dest_dir, CURRENT_SUBDIR, ent->name);
247 eina_strbuf_append_printf(sbuf, "-o '%s/%s/%s.exu' ", _dest_dir, CURRENT_SUBDIR, ent->name); 245 if (_mode == RUN_INIT)
248 if (_mode == RUN_INIT) 246 eina_strbuf_append_printf(sbuf, "-o '%s' ", scn_path);
249 eina_strbuf_append_printf(sbuf, "-o '%s' ", scn_path); 247
250 }
251 else
252 {
253 if (_mode == RUN_PLAY)
254 eina_strbuf_append_printf(sbuf, "-o '%s/%s' ", _dest_dir, CURRENT_SUBDIR);
255 if (_mode == RUN_INIT)
256 eina_strbuf_append_printf(sbuf, "-o '%s/%s' ", _dest_dir, ORIG_SUBDIR);
257 }
258 if (ent->command) 248 if (ent->command)
259 { 249 {
260 eina_strbuf_append(sbuf, "-- "); 250 eina_strbuf_append(sbuf, "-- ");