summaryrefslogtreecommitdiff
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
parent85199d546240641404ceb8f20efd5f049478af8c (diff)
downloadefl-e33f3fd7c9c284ea6c3d1d14b4d897fc8c800f4a.tar.gz
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
-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 @@
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);