Author: Jonas Devlieghere Date: 2023-05-04T21:48:14-07:00 New Revision: b193bd3f28acba2686e6f7d376884deb82ae43c6
URL: https://github.com/llvm/llvm-project/commit/b193bd3f28acba2686e6f7d376884deb82ae43c6 DIFF: https://github.com/llvm/llvm-project/commit/b193bd3f28acba2686e6f7d376884deb82ae43c6.diff LOG: [lldb] Remove SetPropertyAtIndexAsLanguage (NFC) After 6f8b33f6dfd0 this function has no callers anymore. Added: Modified: lldb/include/lldb/Interpreter/OptionValueProperties.h lldb/source/Interpreter/OptionValueProperties.cpp Removed: ################################################################################ diff --git a/lldb/include/lldb/Interpreter/OptionValueProperties.h b/lldb/include/lldb/Interpreter/OptionValueProperties.h index 3251a5ed5e2e2..617fedc7d13ee 100644 --- a/lldb/include/lldb/Interpreter/OptionValueProperties.h +++ b/lldb/include/lldb/Interpreter/OptionValueProperties.h @@ -112,9 +112,6 @@ class OptionValueProperties OptionValueLanguage *GetPropertyAtIndexAsOptionValueLanguage( uint32_t idx, const ExecutionContext *exe_ctx = nullptr) const; - bool SetPropertyAtIndexAsLanguage(uint32_t idx, lldb::LanguageType lang, - const ExecutionContext *exe_ctx = nullptr); - bool GetPropertyAtIndexAsArgs(uint32_t idx, Args &args, const ExecutionContext *exe_ctx = nullptr) const; diff --git a/lldb/source/Interpreter/OptionValueProperties.cpp b/lldb/source/Interpreter/OptionValueProperties.cpp index 53f3c3a808446..fdf5500d53c69 100644 --- a/lldb/source/Interpreter/OptionValueProperties.cpp +++ b/lldb/source/Interpreter/OptionValueProperties.cpp @@ -210,17 +210,6 @@ OptionValueProperties::GetPropertyAtIndexAsOptionValueLanguage( return nullptr; } -bool OptionValueProperties::SetPropertyAtIndexAsLanguage( - uint32_t idx, const LanguageType lang, const ExecutionContext *exe_ctx) { - const Property *property = GetPropertyAtIndex(idx, exe_ctx); - if (property) { - OptionValue *value = property->GetValue().get(); - if (value) - return value->SetLanguageValue(lang); - } - return false; -} - bool OptionValueProperties::GetPropertyAtIndexAsArgs( uint32_t idx, Args &args, const ExecutionContext *exe_ctx) const { const Property *property = GetPropertyAtIndex(idx, exe_ctx); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits