diff --git a/libexec/rbenv-version-name b/libexec/rbenv-version-name index 3eef70a8..3769a7cd 100755 --- a/libexec/rbenv-version-name +++ b/libexec/rbenv-version-name @@ -21,9 +21,6 @@ version_exists() { if version_exists "$RBENV_VERSION"; then echo "$RBENV_VERSION" elif version_exists "${RBENV_VERSION#ruby-}"; then - { echo "warning: ignoring extraneous \`ruby-' prefix in version \`${RBENV_VERSION}'" - echo " (set by $(rbenv-version-origin))" - } >&2 echo "${RBENV_VERSION#ruby-}" else echo "rbenv: version \`$RBENV_VERSION' is not installed" >&2 diff --git a/test/version-name.bats b/test/version-name.bats index 3f4d9b36..d6438b5b 100644 --- a/test/version-name.bats +++ b/test/version-name.bats @@ -57,9 +57,5 @@ setup() { cat > ".ruby-version" <<<"ruby-1.8.7" run rbenv-version-name assert_success - assert_output <