Skip to content

Commit 8b91e4c

Browse files
committed
Sema: Remove isExportedAs, it's no longer used and it was outdated
1 parent d7e39ff commit 8b91e4c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

include/swift/AST/Module.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,10 +1087,6 @@ class ModuleDecl
10871087
/// Returns the associated clang module if one exists.
10881088
const clang::Module *findUnderlyingClangModule() const;
10891089

1090-
/// Does this module or the underlying clang module defines export_as with
1091-
/// a value corresponding to the \p other module?
1092-
bool isExportedAs(const ModuleDecl *other) const;
1093-
10941090
/// Returns a generator with the components of this module's full,
10951091
/// hierarchical name.
10961092
///

lib/AST/Module.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,14 +2649,6 @@ const clang::Module *ModuleDecl::findUnderlyingClangModule() const {
26492649
return nullptr;
26502650
}
26512651

2652-
bool ModuleDecl::isExportedAs(const ModuleDecl *other) const {
2653-
auto clangModule = findUnderlyingClangModule();
2654-
if (!clangModule)
2655-
return false;
2656-
2657-
return other->getRealName().str() == clangModule->ExportAsModule;
2658-
}
2659-
26602652
void ModuleDecl::collectBasicSourceFileInfo(
26612653
llvm::function_ref<void(const BasicSourceFileInfo &)> callback) const {
26622654
for (const FileUnit *fileUnit : getFiles()) {

0 commit comments

Comments
 (0)