diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c index c71c84761..b317cbb28 100644 --- a/system/gcov/gcov.c +++ b/system/gcov/gcov.c @@ -63,7 +63,6 @@ int main(int argc, FAR char *argv[]) { FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP; FAR const char *path = NULL; - bool onefile = false; int option; while ((option = getopt(argc, argv, "d::t:orh")) != ERROR) @@ -91,20 +90,6 @@ int main(int argc, FAR char *argv[]) } } - if (access(path, F_OK) == 0) - { - onefile = true; - } - - if (onefile) - { - setenv("GCOV_DUMP_ONEFILE", "1", 1); - } - else - { - setenv("GCOV_DUMP_ONEFILE", "0", 1); - } - setenv("GCOV_PREFIX_STRIP", strip, 1); setenv("GCOV_PREFIX", path, 1); __gcov_dump();