1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-08-16 16:20:38 +03:00

Remove unused -within-next ui_out switch

This commit is contained in:
Maxime Coste 2024-02-18 15:46:24 +11:00
parent f786fceb73
commit 150ea50391

View File

@ -197,29 +197,6 @@ ui_out() {
! printf %s "$event" | grep "$@"
do :; done
;;
-within-next)
shift
candidate_count=$1
shift
candidates=
found=false
while [ $candidate_count -gt 0 ]; do
read -r event <&4
if [ "$1" = "$event" ]; then
found=true
elif ! $found; then
candidates="$candidates${indent} $event
"
fi
candidate_count=$(( candidate_count - 1 ))
done
if ! $found; then
fail_ifn
printf "${indent} Failed to find:\n"
printf "${indent} %s\n" "$1"
printf "${indent} Candidates:\n%s" "$candidates"
fi
;;
*)
read -r event <&4
assert_eq "$1" "$event"