[Lldb-commits] [lldb] 4493049 - [lldb][NFCI] Remove unused method Properties::GetSubProperty

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 16 10:58:11 PDT 2023


Author: Alex Langford
Date: 2023-06-16T10:55:01-07:00
New Revision: 44930490124d29c07b9538fb08fc6c7713cd74dc

URL: https://github.com/llvm/llvm-project/commit/44930490124d29c07b9538fb08fc6c7713cd74dc
DIFF: https://github.com/llvm/llvm-project/commit/44930490124d29c07b9538fb08fc6c7713cd74dc.diff

LOG: [lldb][NFCI] Remove unused method Properties::GetSubProperty

Added: 
    

Modified: 
    lldb/include/lldb/Core/UserSettingsController.h
    lldb/source/Core/UserSettingsController.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Core/UserSettingsController.h b/lldb/include/lldb/Core/UserSettingsController.h
index 26d5d37383ade..ea60467c9afe5 100644
--- a/lldb/include/lldb/Core/UserSettingsController.h
+++ b/lldb/include/lldb/Core/UserSettingsController.h
@@ -23,7 +23,6 @@
 
 namespace lldb_private {
 class CommandInterpreter;
-class ConstString;
 class ExecutionContext;
 class Property;
 class Stream;
@@ -69,9 +68,6 @@ class Properties {
   size_t Apropos(llvm::StringRef keyword,
                  std::vector<const Property *> &matching_properties) const;
 
-  lldb::OptionValuePropertiesSP GetSubProperty(const ExecutionContext *exe_ctx,
-                                               ConstString name);
-
   // We sometimes need to introduce a setting to enable experimental features,
   // but then we don't want the setting for these to cause errors when the
   // setting goes away.  Add a sub-topic of the settings using this

diff  --git a/lldb/source/Core/UserSettingsController.cpp b/lldb/source/Core/UserSettingsController.cpp
index 30bb468357443..f5dd926cf0500 100644
--- a/lldb/source/Core/UserSettingsController.cpp
+++ b/lldb/source/Core/UserSettingsController.cpp
@@ -98,15 +98,6 @@ Properties::Apropos(llvm::StringRef keyword,
   return matching_properties.size();
 }
 
-lldb::OptionValuePropertiesSP
-Properties::GetSubProperty(const ExecutionContext *exe_ctx,
-                           ConstString name) {
-  OptionValuePropertiesSP properties_sp(GetValueProperties());
-  if (properties_sp)
-    return properties_sp->GetSubProperty(exe_ctx, name);
-  return lldb::OptionValuePropertiesSP();
-}
-
 llvm::StringRef Properties::GetExperimentalSettingsName() {
   static constexpr llvm::StringLiteral g_experimental("experimental");
   return g_experimental;


        


More information about the lldb-commits mailing list