From 7c562f1d4b7ee42e5e89210a109ee0e45ac71fee Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 16 Oct 2018 10:48:30 +0200 Subject: [PATCH] Debugger: Remove unused DebuggerItem::m_autoDetectionSource Change-Id: I02fb55cea393a4d8167942f66bdeb0af4e385e2c Reviewed-by: Tobias Hunger --- src/plugins/debugger/debuggeritem.cpp | 8 -------- src/plugins/debugger/debuggeritem.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/plugins/debugger/debuggeritem.cpp b/src/plugins/debugger/debuggeritem.cpp index 9d06e9e1e3a..28e274417e5 100644 --- a/src/plugins/debugger/debuggeritem.cpp +++ b/src/plugins/debugger/debuggeritem.cpp @@ -56,7 +56,6 @@ const char DEBUGGER_INFORMATION_DISPLAYNAME[] = "DisplayName"; const char DEBUGGER_INFORMATION_ID[] = "Id"; const char DEBUGGER_INFORMATION_ENGINETYPE[] = "EngineType"; const char DEBUGGER_INFORMATION_AUTODETECTED[] = "AutoDetected"; -const char DEBUGGER_INFORMATION_AUTODETECTION_SOURCE[] = "AutoDetectionSource"; const char DEBUGGER_INFORMATION_VERSION[] = "Version"; const char DEBUGGER_INFORMATION_ABIS[] = "Abis"; const char DEBUGGER_INFORMATION_LASTMODIFIED[] = "LastModified"; @@ -82,7 +81,6 @@ DebuggerItem::DebuggerItem(const QVariantMap &data) m_workingDirectory = FileName::fromUserInput(data.value(DEBUGGER_INFORMATION_WORKINGDIRECTORY).toString()); m_unexpandedDisplayName = data.value(QLatin1String(DEBUGGER_INFORMATION_DISPLAYNAME)).toString(); m_isAutoDetected = data.value(QLatin1String(DEBUGGER_INFORMATION_AUTODETECTED), false).toBool(); - m_autoDetectionSource = data.value(QLatin1String(DEBUGGER_INFORMATION_AUTODETECTION_SOURCE)).toString(); m_version = data.value(QLatin1String(DEBUGGER_INFORMATION_VERSION)).toString(); m_engineType = DebuggerEngineType(data.value(QLatin1String(DEBUGGER_INFORMATION_ENGINETYPE), static_cast(NoEngineType)).toInt()); @@ -252,7 +250,6 @@ QVariantMap DebuggerItem::toMap() const data.insert(QLatin1String(DEBUGGER_INFORMATION_WORKINGDIRECTORY), m_workingDirectory.toString()); data.insert(QLatin1String(DEBUGGER_INFORMATION_ENGINETYPE), int(m_engineType)); data.insert(QLatin1String(DEBUGGER_INFORMATION_AUTODETECTED), m_isAutoDetected); - data.insert(QLatin1String(DEBUGGER_INFORMATION_AUTODETECTION_SOURCE), m_autoDetectionSource); data.insert(QLatin1String(DEBUGGER_INFORMATION_VERSION), m_version); data.insert(QLatin1String(DEBUGGER_INFORMATION_ABIS), abiNames()); data.insert(QLatin1String(DEBUGGER_INFORMATION_LASTMODIFIED), m_lastModified); @@ -306,11 +303,6 @@ void DebuggerItem::setVersion(const QString &version) m_version = version; } -void DebuggerItem::setAutoDetectionSource(const QString &autoDetectionSource) -{ - m_autoDetectionSource = autoDetectionSource; -} - void DebuggerItem::setAbis(const QList &abis) { m_abis = abis; diff --git a/src/plugins/debugger/debuggeritem.h b/src/plugins/debugger/debuggeritem.h index e93d30e8b7b..20f141600b5 100644 --- a/src/plugins/debugger/debuggeritem.h +++ b/src/plugins/debugger/debuggeritem.h @@ -81,9 +81,6 @@ public: QString version() const; void setVersion(const QString &version); - QString autoDetectionSource() const { return m_autoDetectionSource; } - void setAutoDetectionSource(const QString &autoDetectionSource); - const QList &abis() const { return m_abis; } void setAbis(const QList &abis); void setAbi(const ProjectExplorer::Abi &abi); @@ -115,7 +112,6 @@ private: Utils::FileName m_command; Utils::FileName m_workingDirectory; bool m_isAutoDetected = false; - QString m_autoDetectionSource; QString m_version; QList m_abis; QDateTime m_lastModified;