Skip to content

Commit 62c10b1

Browse files
committed
Remove unused function hasAnyUnsafePointerParameters()
1 parent 4eae2ed commit 62c10b1

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
@@ -7809,20 +7809,6 @@ bool importer::isSpecialUIKitStructZeroProperty(const clang::NamedDecl *decl) {
78097809
return ident->isStr("UIEdgeInsetsZero") || ident->isStr("UIOffsetZero");
78107810
}
78117811

7812-
/// Determine whether any of the parameters to the given function is of an
7813-
/// unsafe pointer type.
7814-
static bool hasAnyUnsafePointerParameters(FuncDecl *func) {
7815-
for (auto param : *func->getParameters()) {
7816-
Type paramType =
7817-
param->toFunctionParam().getPlainType()->lookThroughAllOptionalTypes();
7818-
if (paramType->getAnyPointerElementType()) {
7819-
return true;
7820-
}
7821-
}
7822-
7823-
return false;
7824-
}
7825-
78267812
Type ClangImporter::Implementation::getMainActorType() {
78277813
if (MainActorType)
78287814
return *MainActorType;

0 commit comments

Comments
 (0)