Skip to content

Commit 588c287

Browse files
committed
[nfc] Remove dead operator code pt. 3
1 parent bcb86b2 commit 588c287

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8872,16 +8872,6 @@ bool importer::isSpecialUIKitStructZeroProperty(const clang::NamedDecl *decl) {
88728872
return ident->isStr("UIEdgeInsetsZero") || ident->isStr("UIOffsetZero");
88738873
}
88748874

8875-
bool importer::isImportedAsStatic(const clang::OverloadedOperatorKind op) {
8876-
switch (op) {
8877-
#define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
8878-
case clang::OO_##Name: return !MemberOnly;
8879-
#include "clang/Basic/OperatorKinds.def"
8880-
default:
8881-
llvm_unreachable("not an operator");
8882-
}
8883-
}
8884-
88858875
bool importer::hasSameUnderlyingType(const clang::Type *a,
88868876
const clang::TemplateTypeParmDecl *b) {
88878877
while (a->isPointerType() || a->isReferenceType())

lib/ClangImporter/ImporterImpl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,10 +1771,6 @@ bool shouldSuppressDeclImport(const clang::Decl *decl);
17711771
/// but are now renamed using the swift_name attribute.
17721772
bool isSpecialUIKitStructZeroProperty(const clang::NamedDecl *decl);
17731773

1774-
/// \returns true if this operator should be made a static function
1775-
/// even if imported as a non-static member function.
1776-
bool isImportedAsStatic(clang::OverloadedOperatorKind op);
1777-
17781774
/// \returns true if \p a has the same underlying type as \p b after removing
17791775
/// any pointer/reference specifiers. Note that this does not currently look through
17801776
/// nested types other than pointers or references.

0 commit comments

Comments
 (0)