From: Marcel Hollerbach Date: Thu, 26 Mar 2020 15:44:55 +0000 (+0100) Subject: exactness_recorder: cleanup code a bit X-Git-Tag: submit/tizen/20200405.220557~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa32c2a6c7f4aa24c737918786b9bc0c5db31520;p=platform%2Fupstream%2Fefl.git 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 Differential Revision: https://phab.enlightenment.org/D11609 --- diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c index 9a33a57..75b5ceb 100644 --- a/src/bin/exactness/recorder.c +++ b/src/bin/exactness/recorder.c @@ -33,8 +33,6 @@ static int _log_domain = -1; static const char *_out_filename = NULL; -static const char *_test_name = NULL; -static int _verbose = 0; static Eina_List *_evas_list = NULL; static unsigned int _last_evas_id = 0; @@ -252,7 +250,6 @@ static const Ecore_Getopt optdesc = { { ECORE_GETOPT_STORE_STR('t', "test", "Name of the filename where to store the test."), ECORE_GETOPT_STORE_STR('f', "fonts-dir", "Specify a directory of the fonts that should be used."), - ECORE_GETOPT_COUNT('v', "verbose", "Turn verbose messages on."), ECORE_GETOPT_LICENSE('L', "license"), ECORE_GETOPT_COPYRIGHT('C', "copyright"), @@ -273,7 +270,6 @@ int main(int argc, char **argv) Ecore_Getopt_Value values[] = { ECORE_GETOPT_VALUE_STR(dest), ECORE_GETOPT_VALUE_STR(fonts_dir), - ECORE_GETOPT_VALUE_INT(_verbose), ECORE_GETOPT_VALUE_BOOL(want_quit), ECORE_GETOPT_VALUE_BOOL(want_quit), @@ -320,6 +316,7 @@ int main(int argc, char **argv) } else { + const char *_test_name; char *slash = strrchr(_out_filename, '/'); if (slash) _test_name = strdup(slash + 1); else _test_name = strdup(_out_filename);