From 61380e686f33482a42776202dbef67b768393e19 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Wed, 5 Dec 2018 21:00:01 -0600 Subject: [PATCH] Remove unused function --- lib/helpers.bash | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index fb5d9cc7..ed229b3a 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -14,28 +14,6 @@ function _command_exists () type "$1" &> /dev/null ; } -# Helper function listing various enable-able files to be sourced -# The files need to be sourced in global scope to preserve scope of 'declare' -function _list_bash_it_files() { - local subdirectory="$1" - pushd "${BASH_IT}" >/dev/null - - if [ -d "./${subdirectory}/enabled" ] - then - local FILES="./${subdirectory}/enabled/*.bash" - local _bash_it_config_file - - for _bash_it_config_file in $FILES - do - if [ -e "${_bash_it_config_file}" ]; then - printf "$_bash_it_config_file\n" - fi - done - fi - - popd >/dev/null -} - function _make_reload_alias() { echo "source \${BASH_IT}/scripts/reloader.bash ${1} ${2}" }