Remove unused function

This commit is contained in:
Bruno Sutic 2015-08-03 01:16:56 +02:00
parent 0f0d9adb06
commit 44f9dd2719
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C

View File

@ -69,31 +69,6 @@ end_message() {
echo_message "Done, press ENTER to continue."
}
# Ensures a message is displayed for 5 seconds in tmux prompt.
# Does not override the 'display-time' tmux option.
display_message() {
local message="$1"
# display_duration defaults to 5 seconds, if not passed as an argument
if [ "$#" -eq 2 ]; then
local display_duration="$2"
else
local display_duration="5000"
fi
# saves user-set 'display-time' option
local saved_display_time="$(get_tmux_option "display-time" "750")"
# sets message display time to 5 seconds
tmux set-option -gq display-time "$display_duration"
# displays message
tmux display-message "$message"
# restores original 'display-time' value
tmux set-option -gq display-time "$saved_display_time"
}
ensure_tpm_path_exists() {
mkdir -p "$SHARED_TPM_PATH"
}