From 47b5d51fa37ef6319e05544c0f7dd88de8bc4d22 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 7 Jun 2020 13:36:33 -0700 Subject: [PATCH] Remove unused helper functions. --- hosts | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/hosts b/hosts index 92298f0..844dcd1 100755 --- a/hosts +++ b/hosts @@ -344,54 +344,6 @@ _join() { printf "%s" "${@/#/${_delimiter}}" | tr -d '[:space:]' } -# _blank() -# -# Usage: -# _blank "$an_argument" -# -# Exit Status: -# 0 If the argument is not present or null. -# 1 If the argument is present and not null. -_blank() { - [[ -z "${1:-}" ]] -} - -# _present() -# -# Usage: -# _present "$an_argument" -# -# Exit Status: -# 0 If the argument is present and not null. -# 1 If the argument is not present or null. -_present() { - [[ -n "${1:-}" ]] -} - -# _interactive_input() -# -# Usage: -# _interactive_input -# -# Exit Status: -# 0 If the current input is interactive (eg, a shell). -# 1 If the current input is stdin / piped input. -_interactive_input() { - [[ -t 0 ]] -} - -# _piped_input() -# -# Usage: -# _piped_input -# -# Exit Status: -# 0 If the current input is stdin / piped input. -# 1 If the current input is interactive (eg, a shell). -_piped_input() { - ! _interactive_input -} - # _print_entries() # # Usage: