diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -2548,8 +2548,6 @@ /// system, not as part of the canonical type, so nullability will /// be lost by canonicalization and desugaring. Optional getNullability() const; - // TODO: Remove overload. - Optional getNullability(const ASTContext &) const; /// Determine whether the given type can have a nullability /// specifier applied to it, i.e., if it is any kind of pointer type. diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -4157,10 +4157,6 @@ } return std::nullopt; } -// TODO: Remove overload. -Optional Type::getNullability(const ASTContext &) const { - return getNullability(); -} bool Type::canHaveNullability(bool ResultIfUnknown) const { QualType type = getCanonicalTypeInternal();