Skip to content

Commit f5e32aa

Browse files
authored
Merge pull request #35957 from DougGregor/remove-hasAnyUnsafePointerParameters
2 parents d639ee8 + 62c10b1 commit f5e32aa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7814,20 +7814,6 @@ bool importer::isSpecialUIKitStructZeroProperty(const clang::NamedDecl *decl) {
78147814
return ident->isStr("UIEdgeInsetsZero") || ident->isStr("UIOffsetZero");
78157815
}
78167816

7817-
/// Determine whether any of the parameters to the given function is of an
7818-
/// unsafe pointer type.
7819-
static bool hasAnyUnsafePointerParameters(FuncDecl *func) {
7820-
for (auto param : *func->getParameters()) {
7821-
Type paramType =
7822-
param->toFunctionParam().getPlainType()->lookThroughAllOptionalTypes();
7823-
if (paramType->getAnyPointerElementType()) {
7824-
return true;
7825-
}
7826-
}
7827-
7828-
return false;
7829-
}
7830-
78317817
Type ClangImporter::Implementation::getMainActorType() {
78327818
if (MainActorType)
78337819
return *MainActorType;

0 commit comments

Comments
 (0)