AST: Remove TypeBase::getClassBound()

This commit is contained in:
Slava Pestov
2017-02-27 15:20:30 -08:00
parent 79d43c5316
commit 83ca7a852f
3 changed files with 8 additions and 30 deletions

View File

@@ -361,7 +361,6 @@ class CanType : public Type {
OptionalTypeKind &kind);
static CanType getReferenceStorageReferentImpl(CanType type);
static CanType getLValueOrInOutObjectTypeImpl(CanType type);
static ClassDecl *getClassBoundImpl(CanType type);
public:
explicit CanType(TypeBase *P = 0) : Type(P) {
@@ -438,15 +437,6 @@ public:
/// it returns an empty LayoutConstraint.
LayoutConstraint getLayoutConstraint() const;
/// \brief Retrieve the most-specific class bound of this type,
/// which is either a class, a bound-generic class, or a class-bounded
/// archetype.
///
/// Returns nil if this is an archetype with a non-specific class bound.
ClassDecl *getClassBound() const {
return getClassBoundImpl(*this);
}
CanType getAnyOptionalObjectType() const {
OptionalTypeKind kind;
return getAnyOptionalObjectTypeImpl(*this, kind);