mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove TypeBase::getClassBound()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user