From ac0d91b682402d916ff0055ecf59e7593e8fb303 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 19 Jan 2022 12:10:54 -0800 Subject: [PATCH] lib/theme.githelpers: remove dead code Five years deprecation is plenty warning. --- themes/githelpers.theme.bash | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/themes/githelpers.theme.bash b/themes/githelpers.theme.bash index 2fbb7e8a..719effec 100644 --- a/themes/githelpers.theme.bash +++ b/themes/githelpers.theme.bash @@ -171,35 +171,3 @@ function _git-remote-info() { fi fi } - -# Unused by bash-it, present for API compatibility -function git_status_summary() { - awk ' - BEGIN { - untracked=0; - unstaged=0; - staged=0; - } - { - if (!after_first && $0 ~ /^##.+/) { - print $0 - seen_header = 1 - } else if ($0 ~ /^\?\? .+/) { - untracked += 1 - } else { - if ($0 ~ /^.[^ ] .+/) { - unstaged += 1 - } - if ($0 ~ /^[^ ]. .+/) { - staged += 1 - } - } - after_first = 1 - } - END { - if (!seen_header) { - print - } - print untracked "\t" unstaged "\t" staged - }' -}