diff --git a/tools/perf/bash_completion b/tools/perf/bash_completion index d2598be517fb2acdbb73b98f7a3cc43c5bfe09f2..35fdda1540d8cdc26aaa371909a9d57adb909ce5 100644 --- a/tools/perf/bash_completion +++ b/tools/perf/bash_completion @@ -1,12 +1,6 @@ # perf completion -function_exists() -{ - declare -F $1 > /dev/null - return $? -} - -function_exists __ltrim_colon_completions || +type __ltrim_colon_completions &>/dev/null || __ltrim_colon_completions() { if [[ "$1" == *:* && "$COMP_WORDBREAKS" == *:* ]]; then