From f08da971861636df69e5e2ac2f8a3acafdd92c38 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 31 May 2016 12:08:03 +0200 Subject: Get rid of dead code QMAKE_SWITCHES (dead/broken since d1c10615e, 2012) and QMAKE_VARS (dead since 389f8b039, 2006) were set, but never used in configure. SUPPORTED was defined but never used since 018aff49cd (2003). Removed dead command line arguments -depths (qws-related, dead since f220f99a6d), -arch, -host-arch (both 921e5193), and -qconfig (710ec5ca). Change-Id: I6bbed56c538cdd74b68432e7fd1e51177f79cc85 Reviewed-by: Oswald Buddenhagen --- configure | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'configure') diff --git a/configure b/configure index bd7531149d..2324e0b72f 100755 --- a/configure +++ b/configure @@ -92,12 +92,9 @@ done # initialize global variables CONFIG_SEPARATORS=`printf ' \t'` -QMAKE_SWITCHES= -QMAKE_VARS= QMAKE_CONFIG= QTCONFIG_CONFIG= QT_CONFIG= -SUPPORTED= QMAKE_VARS_FILE=.qmake.vars DEVICE_VARS_FILE=.device.vars HOST_VARS_FILE=.host.vars @@ -929,7 +926,6 @@ while [ "$#" -gt 0 ]; do -extprefix| \ -sysroot| \ -external-hostbindir| \ - -depths| \ -make| \ -nomake| \ -skip| \ @@ -939,13 +935,10 @@ while [ "$#" -gt 0 ]; do -device-option| \ -host-option| \ -sdk| \ - -arch| \ - -host-arch| \ -c++std | \ -mysql_config| \ -psql_config| \ -qpa| \ - -qconfig| \ -qreal| \ -sanitize| \ -xkb-config-root| \ @@ -1313,7 +1306,6 @@ while [ "$#" -gt 0 ]; do QMakeVar add QMAKE_CFLAGS -pg QMakeVar add QMAKE_CXXFLAGS -pg QMakeVar add QMAKE_LFLAGS -pg - QMAKE_VARS="$QMAKE_VARS CONFIG+=nostrip" else UNKNOWN_OPT=yes fi @@ -1994,17 +1986,9 @@ while [ "$#" -gt 0 ]; do ;; v|verbose) if [ "$VAL" = "yes" ]; then - if [ "$OPT_VERBOSE" = "$VAL" ]; then # takes two verboses to turn on qmake debugs - QMAKE_SWITCHES="$QMAKE_SWITCHES -d" - else - OPT_VERBOSE=yes - fi + OPT_VERBOSE=yes elif [ "$VAL" = "no" ]; then - if [ "$OPT_VERBOSE" = "$VAL" ] && echo "$QMAKE_SWITCHES" | grep ' -d' >/dev/null 2>&1; then - QMAKE_SWITCHES=`echo $QMAKE_SWITCHES | sed 's, -d,,'` - else - OPT_VERBOSE=no - fi + OPT_VERBOSE=no else UNKNOWN_OPT=yes fi @@ -6331,7 +6315,6 @@ fi if [ "$OPT_VERBOSE" = "yes" ]; then echo $ECHO_N "qmake vars .......... $ECHO_C" cat "$QMAKE_VARS_FILE" | tr '\n' ' ' - echo "qmake switches ......... $QMAKE_SWITCHES" echo fi -- cgit v1.2.3