From: SZEDER Gábor Date: Sat, 17 Nov 2012 11:05:53 GMT Subject: [PATCH 7/7] completion: remove the now unused __gitcomp_1() internal helper function Message-ID: <1353150353-29874-8-git-send-email-szeder@ira.uka.de> In-Reply-To: <1353150353-29874-1-git-send-email-szeder@ira.uka.de> Since the __gitcomp_1() helper is basically only an implementation detail of __gitcomp() that exists solely for performance reasons (see ab02dfe5 (bash completion: Improve responsiveness of git-log completion, 2008-07-13)), it's quite unlikely that anyone uses or ever used it besides __gitcomp(). And now __gitcomp() doesn't need it anymore either, so delete it. Signed-off-by: SZEDER Gábor --- contrib/completion/git-completion.bash | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 283ef99b..a281b28d 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -56,19 +56,6 @@ __gitdir () fi } -__gitcomp_1 () -{ - local c IFS=$' \t\n' - for c in $1; do - c="$c$2" - case $c in - --*=*|*.) ;; - *) c="$c " ;; - esac - printf '%s\n' "$c" - done -} - # The following function is based on code from: # # bash_completion - programmable completion functions for bash 3.2+ -- 1.8.0.220.g4d14ece