[Lldb-commits] [lldb] 207998c - [lldb] Remove variable "any" which is set but not used
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 20 12:08:40 PDT 2021
Author: Jonas Devlieghere
Date: 2021-10-20T12:08:35-07:00
New Revision: 207998c242c8c8a270ff22a5136da87338546725
URL: https://github.com/llvm/llvm-project/commit/207998c242c8c8a270ff22a5136da87338546725
DIFF: https://github.com/llvm/llvm-project/commit/207998c242c8c8a270ff22a5136da87338546725.diff
LOG: [lldb] Remove variable "any" which is set but not used
Added:
Modified:
lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm b/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
index 3069214e47b84..beb2cbd1507b4 100644
--- a/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
+++ b/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
@@ -110,12 +110,10 @@ - (BOOL)spawnWithPath:(NSString *)path
CoreSimulatorSupport::ModelIdentifier::ModelIdentifier(const std::string &mi)
: m_family(), m_versions() {
- bool any = false;
bool first_digit = false;
unsigned int val = 0;
for (char c : mi) {
- any = true;
if (::isdigit(c)) {
if (!first_digit)
first_digit = true;
More information about the lldb-commits
mailing list