Skip to content

Commit

Permalink
configure: remove some dead cruft
Browse files Browse the repository at this point in the history
print_error is only invoked in one place, and $git is unused.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Oct 18, 2023
1 parent 2e938a9 commit 050b439
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,14 @@ quote_sh() {
printf "%s" "$1" | sed "s,','\\\\'',g; s,.*,'&',"
}

print_error() {
error_exit() {
(echo
echo "ERROR: $1"
while test -n "$2"; do
echo " $2"
shift
done
echo) >&2
}

error_exit() {
print_error "$@"
exit 1
}

Expand Down Expand Up @@ -248,7 +244,6 @@ done

default_cflags='-O2 -g'
git_submodules_action="update"
git="git"
docs="auto"
EXESUF=""
prefix="/usr/local"
Expand Down

0 comments on commit 050b439

Please sign in to comment.