[NFC] Delete obsolete AccessPathTy-based code

This was all deprecated in earlier commits.
This commit is contained in:
Brent Royal-Gordon
2020-08-31 15:24:59 -07:00
parent 4be67a6be1
commit 6f2853695b
3 changed files with 0 additions and 39 deletions

View File

@@ -203,8 +203,6 @@ class ModuleDecl : public DeclContext, public TypeDecl {
friend class DirectPrecedenceGroupLookupRequest;
public:
LLVM_ATTRIBUTE_DEPRECATED(typedef ArrayRef<Located<Identifier>> AccessPathTy,
"use ImportPath types instead");
/// Convenience struct to keep track of a module along with its access path.
struct alignas(uint64_t) ImportedModule {
/// The access path from an import: `import Foo.Bar` -> `Foo.Bar`.
@@ -226,16 +224,6 @@ public:
}
};
LLVM_ATTRIBUTE_DEPRECATED(
static bool matchesAccessPath(AccessPathTy AccessPath, DeclName Name),
"use ImportPath::Access::matches() instead")
{
assert(AccessPath.size() <= 1 && "can only refer to top-level decls");
return AccessPath.empty()
|| DeclName(AccessPath.front().Item).matchesRef(Name);
}
/// Arbitrarily orders ImportedModule records, for inclusion in sets and such.
class OrderImportedModules {
public:
@@ -757,14 +745,6 @@ public:
/// imports.
void collectLinkLibraries(LinkLibraryCallback callback) const;
/// Returns true if the two access paths contain the same chain of
/// identifiers.
///
/// Source locations are ignored here.
LLVM_ATTRIBUTE_DEPRECATED(
static bool isSameAccessPath(AccessPathTy lhs, AccessPathTy rhs),
"use ImportPath::Access::isSameAs() instead");
/// Get the path for the file that this module came from, or an empty
/// string if this is not applicable.
StringRef getModuleFilename() const;