summaryrefslogtreecommitdiff
path: root/src/bin/exactness
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-26 16:44:55 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-03-30 13:57:48 +0200
commite33f3fd7c9c284ea6c3d1d14b4d897fc8c800f4a (patch)
treebb5de8df6464b263f96b67f9ac0552dc8290a51f /src/bin/exactness
parent85199d546240641404ceb8f20efd5f049478af8c (diff)
exactness_recorder: cleanup code a bit
_test_name was not used globally, so lets move it to the used scope. Verbose is not used at all either. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11609
Diffstat (limited to 'src/bin/exactness')
-rw-r--r--src/bin/exactness/recorder.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c
index 9a33a57c4c..75b5cebb52 100644
--- a/src/bin/exactness/recorder.c
+++ b/src/bin/exactness/recorder.c
@@ -33,8 +33,6 @@
33static int _log_domain = -1; 33static int _log_domain = -1;
34 34
35static const char *_out_filename = NULL; 35static const char *_out_filename = NULL;
36static const char *_test_name = NULL;
37static int _verbose = 0;
38 36
39static Eina_List *_evas_list = NULL; 37static Eina_List *_evas_list = NULL;
40static unsigned int _last_evas_id = 0; 38static unsigned int _last_evas_id = 0;
@@ -252,7 +250,6 @@ static const Ecore_Getopt optdesc = {
252 { 250 {
253 ECORE_GETOPT_STORE_STR('t', "test", "Name of the filename where to store the test."), 251 ECORE_GETOPT_STORE_STR('t', "test", "Name of the filename where to store the test."),
254 ECORE_GETOPT_STORE_STR('f', "fonts-dir", "Specify a directory of the fonts that should be used."), 252 ECORE_GETOPT_STORE_STR('f', "fonts-dir", "Specify a directory of the fonts that should be used."),
255 ECORE_GETOPT_COUNT('v', "verbose", "Turn verbose messages on."),
256 253
257 ECORE_GETOPT_LICENSE('L', "license"), 254 ECORE_GETOPT_LICENSE('L', "license"),
258 ECORE_GETOPT_COPYRIGHT('C', "copyright"), 255 ECORE_GETOPT_COPYRIGHT('C', "copyright"),
@@ -273,7 +270,6 @@ int main(int argc, char **argv)
273 Ecore_Getopt_Value values[] = { 270 Ecore_Getopt_Value values[] = {
274 ECORE_GETOPT_VALUE_STR(dest), 271 ECORE_GETOPT_VALUE_STR(dest),
275 ECORE_GETOPT_VALUE_STR(fonts_dir), 272 ECORE_GETOPT_VALUE_STR(fonts_dir),
276 ECORE_GETOPT_VALUE_INT(_verbose),
277 273
278 ECORE_GETOPT_VALUE_BOOL(want_quit), 274 ECORE_GETOPT_VALUE_BOOL(want_quit),
279 ECORE_GETOPT_VALUE_BOOL(want_quit), 275 ECORE_GETOPT_VALUE_BOOL(want_quit),
@@ -320,6 +316,7 @@ int main(int argc, char **argv)
320 } 316 }
321 else 317 else
322 { 318 {
319 const char *_test_name;
323 char *slash = strrchr(_out_filename, '/'); 320 char *slash = strrchr(_out_filename, '/');
324 if (slash) _test_name = strdup(slash + 1); 321 if (slash) _test_name = strdup(slash + 1);
325 else _test_name = strdup(_out_filename); 322 else _test_name = strdup(_out_filename);