diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-04-03 19:02:46 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-04-03 19:02:46 -0700 |
commit | 9dd6873e5855f69b01f2e3705a49a4231c992e71 (patch) | |
tree | 7fc073cc4780b381285567b1df1b6caf9966bb00 /src/builtin.cpp | |
parent | 3f1fc332e7451187b1b9806f544bc8199fa412a8 (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/builtin.cpp')
-rw-r--r-- | src/builtin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/builtin.cpp b/src/builtin.cpp index f4de72c7..dd67817a 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -3925,6 +3925,8 @@ static int builtin_history(parser_t &parser, io_streams_t &streams, wchar_t **ar return STATUS_BUILTIN_ERROR; } +#if 0 +// Disabled for the 2.2.0 release: https://github.com/fish-shell/fish-shell/issues/1809. int builtin_parse(parser_t &parser, io_streams_t &streams, wchar_t **argv) { struct sigaction act; @@ -3966,6 +3968,7 @@ int builtin_parse(parser_t &parser, io_streams_t &streams, wchar_t **argv) } return STATUS_BUILTIN_OK; } +#endif int builtin_true(parser_t &parser, io_streams_t &streams, wchar_t **argv) { @@ -3992,6 +3995,7 @@ static const builtin_data_t builtin_datas[]= { { L"[", &builtin_test, N_(L"Test a condition") }, #if 0 + // Disabled for the 2.2.0 release: https://github.com/fish-shell/fish-shell/issues/1809. { L"__fish_parse", &builtin_parse, N_(L"Try out the new parser") }, #endif { L"and", &builtin_generic, N_(L"Execute command if previous command suceeded") }, |