Remove unused function hasAnyUnsafePointerParameters()

This commit is contained in:
Doug Gregor
2021-02-12 16:02:32 -08:00
parent 4eae2ed837
commit 62c10b1896

View File

@@ -7809,20 +7809,6 @@ bool importer::isSpecialUIKitStructZeroProperty(const clang::NamedDecl *decl) {
return ident->isStr("UIEdgeInsetsZero") || ident->isStr("UIOffsetZero");
}
/// Determine whether any of the parameters to the given function is of an
/// unsafe pointer type.
static bool hasAnyUnsafePointerParameters(FuncDecl *func) {
for (auto param : *func->getParameters()) {
Type paramType =
param->toFunctionParam().getPlainType()->lookThroughAllOptionalTypes();
if (paramType->getAnyPointerElementType()) {
return true;
}
}
return false;
}
Type ClangImporter::Implementation::getMainActorType() {
if (MainActorType)
return *MainActorType;