aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-03 19:02:46 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-03 19:02:46 -0700
commit9dd6873e5855f69b01f2e3705a49a4231c992e71 (patch)
tree7fc073cc4780b381285567b1df1b6caf9966bb00 /src/fish_tests.cpp
parent3f1fc332e7451187b1b9806f544bc8199fa412a8 (diff)
lint: remove or comment out unused functions
Cppcheck has identified a lot of unused functions. This removes funcs that are unlikely to ever be used. Others that might be useful for debugging I've commented out with "#if 0".
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r--src/fish_tests.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp
index 5bacab80..9afb4344 100644
--- a/src/fish_tests.cpp
+++ b/src/fish_tests.cpp
@@ -2887,8 +2887,7 @@ public:
static void test_history(void);
static void test_history_merge(void);
static void test_history_formats(void);
- static void test_history_speed(void);
-
+ // static void test_history_speed(void);
static void test_history_races(void);
static void test_history_races_pound_on_history();
};
@@ -3378,6 +3377,8 @@ void history_tests_t::test_history_formats(void)
}
}
+#if 0
+// This test isn't run at this time. It was added by commit b9283d48 but not actually enabled.
void history_tests_t::test_history_speed(void)
{
say(L"Testing history speed (pid is %d)", getpid());
@@ -3403,6 +3404,7 @@ void history_tests_t::test_history_speed(void)
hist->clear();
delete hist;
}
+#endif
static void test_new_parser_correctness(void)
{
@@ -4483,8 +4485,8 @@ int main(int argc, char **argv)
if (should_test_function("history_merge")) history_tests_t::test_history_merge();
if (should_test_function("history_races")) history_tests_t::test_history_races();
if (should_test_function("history_formats")) history_tests_t::test_history_formats();
- //history_tests_t::test_history_speed();
if (should_test_function("string")) test_string();
+ // history_tests_t::test_history_speed();
say(L"Encountered %d errors in low-level tests", err_count);
if (s_test_run_count == 0)