[Serialization] Remove unused function getKnownModules
authorKazu Hirata <kazu@google.com>
Sat, 3 Jun 2023 16:37:37 +0000 (09:37 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 3 Jun 2023 16:37:37 +0000 (09:37 -0700)
The last use was removed by:

  commit 603cd869f7cdb0da7a545e86a1786f3175f72475
  Author: Douglas Gregor <dgregor@apple.com>
  Date:   Fri Mar 22 18:50:14 2013 +0000

clang/include/clang/Serialization/GlobalModuleIndex.h
clang/lib/Serialization/GlobalModuleIndex.cpp

index 9d6b52a..d82e0dd 100644 (file)
@@ -136,12 +136,6 @@ public:
   /// The caller accepts ownership of the returned object.
   IdentifierIterator *createIdentifierIterator() const;
 
-  /// Retrieve the set of modules that have up-to-date indexes.
-  ///
-  /// \param ModuleFiles Will be populated with the set of module files that
-  /// have been indexed.
-  void getKnownModules(llvm::SmallVectorImpl<ModuleFile *> &ModuleFiles);
-
   /// Retrieve the set of module files on which the given module file
   /// directly depends.
   void getModuleDependencies(ModuleFile *File,
index 307a147..1b8c130 100644 (file)
@@ -281,15 +281,6 @@ GlobalModuleIndex::readIndex(StringRef Path) {
                         llvm::Error::success());
 }
 
-void
-GlobalModuleIndex::getKnownModules(SmallVectorImpl<ModuleFile *> &ModuleFiles) {
-  ModuleFiles.clear();
-  for (unsigned I = 0, N = Modules.size(); I != N; ++I) {
-    if (ModuleFile *MF = Modules[I].File)
-      ModuleFiles.push_back(MF);
-  }
-}
-
 void GlobalModuleIndex::getModuleDependencies(
        ModuleFile *File,
        SmallVectorImpl<ModuleFile *> &Dependencies) {