From 5441ebc91f212aea38346c181d8dcda0bd8899f1 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 28 Mar 2019 00:37:06 -0700 Subject: [PATCH] Remove some dead code --- src/builtin.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index 347f5c216..d2b545536 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -143,15 +143,6 @@ int parse_help_only_cmd_opts(struct help_only_cmd_opts_t &opts, int *optind, int return STATUS_CMD_OK; } -/// Count the number of times the specified character occurs in the specified string. -static int count_char(const wchar_t *str, wchar_t c) { - int res = 0; - for (; *str; str++) { - res += (*str == c); - } - return res; -} - /// Obtain help/usage information for the specified builtin from manpage in subshell /// /// @param name