[Lldb-commits] [lldb] c7a54bf - [lldb][ASTUtils] Remove unused SemaSourceWithPriorities::addSource API

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 19 08:20:08 PDT 2024


Author: Michael Buch
Date: 2024-08-19T16:19:44+01:00
New Revision: c7a54bfd1d25330199c96dd0a46cef1644b1b1ce

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

LOG: [lldb][ASTUtils] Remove unused SemaSourceWithPriorities::addSource API

As far as I can tell, this has always been unused. My hunch is that
this was supposed to mimick the `MultiplexExternalSemaSource::AddSource`
API which `SemaSourceWithPriorities` is based on.

Added: 
    

Modified: 
    lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h b/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
index da2b1a15f74614..79ed74b79f04fd 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
@@ -264,10 +264,6 @@ class SemaSourceWithPriorities : public clang::ExternalSemaSource {
 
   ~SemaSourceWithPriorities() override;
 
-  void addSource(clang::ExternalSemaSource &source) {
-    Sources.push_back(&source);
-  }
-
   //===--------------------------------------------------------------------===//
   // ExternalASTSource.
   //===--------------------------------------------------------------------===//


        


More information about the lldb-commits mailing list