From 7819a744afad11cc4573634d1bad3a7534d7220e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 24 Jan 2017 13:33:14 +0100 Subject: qmake: remove unnecessary QMakeGlobals::setProperties() overload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sync-up with qt-creator; no effect on qmake or lupdate. Change-Id: I926bc97fe6fa510ac5a8fe77b64014333a69bd04 Reviewed-by: Joerg Bornemann (cherry picked from qtcreator/8a69c254757eab7852443b5e4bd5eafb68908d3d) Reviewed-by: Tor Arne Vestbø --- src/linguist/shared/qmakeglobals.cpp | 7 ------- src/linguist/shared/qmakeglobals.h | 1 - 2 files changed, 8 deletions(-) diff --git a/src/linguist/shared/qmakeglobals.cpp b/src/linguist/shared/qmakeglobals.cpp index 77eb7e53d..5a571e7d8 100644 --- a/src/linguist/shared/qmakeglobals.cpp +++ b/src/linguist/shared/qmakeglobals.cpp @@ -370,13 +370,6 @@ bool QMakeGlobals::initProperties() } return true; } -#else -void QMakeGlobals::setProperties(const QHash &props) -{ - QHash::ConstIterator it = props.constBegin(), eit = props.constEnd(); - for (; it != eit; ++it) - properties.insert(ProKey(it.key()), ProString(it.value())); -} #endif #endif // QT_BUILD_QMAKE diff --git a/src/linguist/shared/qmakeglobals.h b/src/linguist/shared/qmakeglobals.h index f9c3b20e4..8357b2db6 100644 --- a/src/linguist/shared/qmakeglobals.h +++ b/src/linguist/shared/qmakeglobals.h @@ -134,7 +134,6 @@ public: # ifdef PROEVALUATOR_INIT_PROPS bool initProperties(); # else - void setProperties(const QHash &props); void setProperties(const QHash &props) { properties = props; } # endif ProString propertyValue(const ProKey &name) const { return properties.value(name); } -- cgit v1.2.1