Clean up utils

Whitespace and remove dead function
This commit is contained in:
Kevin Rockwood 2016-07-31 09:56:47 +09:00
parent 511535b750
commit 280581c566

View File

@ -2,7 +2,6 @@ asdf_version() {
echo "0.2.0-dev"
}
asdf_dir() {
if [ -z $ASDF_DIR ]; then
local current_script_path=${BASH_SOURCE[0]}
@ -12,7 +11,6 @@ asdf_dir() {
echo $ASDF_DIR
}
get_install_path() {
local plugin=$1
local install_type=$2
@ -27,7 +25,6 @@ get_install_path() {
fi
}
check_if_plugin_exists() {
# Check if we have a non-empty argument
if [ -z "${1+set}" ]; then
@ -51,18 +48,10 @@ check_if_version_exists() {
fi
}
get_version_part() {
IFS='@' read -a version_info <<< "$1"
echo ${version_info[$2]}
}
get_plugin_path() {
echo $(asdf_dir)/plugins/$1
}
display_error() {
echo >&2 $1
}