lib/theme.githelpers: remove dead code

Five years deprecation is plenty warning.
pull/2038/head
John D Pell 2022-01-19 12:10:54 -08:00 committed by John D Pell
parent 1d73537dbf
commit ac0d91b682
1 changed files with 0 additions and 32 deletions

View File

@ -171,35 +171,3 @@ function _git-remote-info() {
fi fi
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
}'
}