[clang] 8e6e659 - [Serialization] Remove unused function getKnownModules
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 3 09:37:51 PDT 2023
Author: Kazu Hirata
Date: 2023-06-03T09:37:37-07:00
New Revision: 8e6e659cc800a13876d3239f9f29ea6615d86f40
URL: https://github.com/llvm/llvm-project/commit/8e6e659cc800a13876d3239f9f29ea6615d86f40
DIFF: https://github.com/llvm/llvm-project/commit/8e6e659cc800a13876d3239f9f29ea6615d86f40.diff
LOG: [Serialization] Remove unused function getKnownModules
The last use was removed by:
commit 603cd869f7cdb0da7a545e86a1786f3175f72475
Author: Douglas Gregor <dgregor at apple.com>
Date: Fri Mar 22 18:50:14 2013 +0000
Added:
Modified:
clang/include/clang/Serialization/GlobalModuleIndex.h
clang/lib/Serialization/GlobalModuleIndex.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Serialization/GlobalModuleIndex.h b/clang/include/clang/Serialization/GlobalModuleIndex.h
index 9d6b52a97f52e..d82e0dd294b90 100644
--- a/clang/include/clang/Serialization/GlobalModuleIndex.h
+++ b/clang/include/clang/Serialization/GlobalModuleIndex.h
@@ -136,12 +136,6 @@ class GlobalModuleIndex {
/// 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,
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index 307a1477213c8..1b8c1303a2886 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -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) {
More information about the cfe-commits
mailing list