File tree 2 files changed +3
-10
lines changed 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -2289,14 +2289,6 @@ class DeclAndTypePrinter::Implementation
2289
2289
return false ;
2290
2290
}
2291
2291
2292
- std::optional<PrimitiveTypeMapping::ClangTypeInfo>
2293
- getKnownType (const TypeDecl *typeDecl) {
2294
- if (outputLang == OutputLanguageMode::C)
2295
- return owningPrinter.typeMapping .getKnownCTypeInfo (typeDecl);
2296
-
2297
- return owningPrinter.typeMapping .getKnownObjCTypeInfo (typeDecl);
2298
- }
2299
-
2300
2292
// / If \p typeDecl is one of the standard library types used to map in Clang
2301
2293
// / primitives and basic types, print out the appropriate spelling and
2302
2294
// / return true.
@@ -2305,7 +2297,8 @@ class DeclAndTypePrinter::Implementation
2305
2297
// / for interfacing with C and Objective-C.
2306
2298
bool printIfKnownSimpleType (const TypeDecl *typeDecl,
2307
2299
std::optional<OptionalTypeKind> optionalKind) {
2308
- auto knownTypeInfo = getKnownType (typeDecl);
2300
+ auto knownTypeInfo =
2301
+ owningPrinter.typeMapping .getKnownObjCTypeInfo (typeDecl);
2309
2302
if (!knownTypeInfo)
2310
2303
return false ;
2311
2304
os << knownTypeInfo->name ;
Original file line number Diff line number Diff line change 15
15
16
16
namespace swift {
17
17
18
- enum class OutputLanguageMode { ObjC, Cxx, C };
18
+ enum class OutputLanguageMode { ObjC, Cxx };
19
19
20
20
} // end namespace swift
21
21
You can’t perform that action at this time.
0 commit comments