Skip to content

Commit 38d95c6

Browse files
[gardening] Remove unused code.
getObjCName(…) not in use since @DougGregor's commit 8802d6d
1 parent 2c25cbb commit 38d95c6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -627,18 +627,6 @@ static bool checkMutating(FuncDecl *requirement, FuncDecl *witness,
627627
return !requirementMutating && witnessMutating;
628628
}
629629

630-
/// Retrieve the Objective-C name of the given declaration.
631-
///
632-
/// This is a full-fledged selector for methods and initializers, and a
633-
/// no-parameter selector for properties.
634-
static ObjCSelector getObjCName(ValueDecl *decl) {
635-
if (auto func = dyn_cast<AbstractFunctionDecl>(decl))
636-
return func->getObjCSelector();
637-
638-
auto var = cast<VarDecl>(decl);
639-
return ObjCSelector(decl->getASTContext(), 0, var->getObjCPropertyName());
640-
}
641-
642630
/// Check that the Objective-C method(s) provided by the witness have
643631
/// the same selectors as those required by the requirement.
644632
static bool checkObjCWitnessSelector(TypeChecker &tc, ValueDecl *req,

0 commit comments

Comments
 (0)