Skip to content

Commit 825e02e

Browse files
committed
Remove -enable-import-objc-generics staging flag.
1 parent 2555445 commit 825e02e

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ namespace swift {
154154
/// Whether we are stripping the "NS" prefix from Foundation et al.
155155
bool StripNSPrefix = false;
156156

157-
/// Whether classes with Objective-C lightweight generic type parameters
158-
/// should be imported into Swift as generic classes.
159-
bool ImportObjCGenerics = true;
160-
161157
/// Enable the Swift 3 migration via Fix-Its.
162158
bool Swift3Migration = false;
163159

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,6 @@ def enable_infer_import_as_member :
232232
Flag<["-"], "enable-infer-import-as-member">,
233233
HelpText<"Infer when a global could be imported as a member">;
234234

235-
def enable_import_objc_generics :
236-
Flag<["-"], "enable-import-objc-generics">,
237-
HelpText<"Import Objective-C lightweight generic type params">;
238-
239235
def enable_strip_ns_prefix :
240236
Flag<["-"], "enable-strip-ns-prefix">,
241237
HelpText<"Strip 'NS' prefix from Foundation entities">;

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4366,9 +4366,6 @@ namespace {
43664366
Optional<GenericParamList *> importObjCGenericParams(
43674367
const clang::ObjCInterfaceDecl *decl, DeclContext *dc)
43684368
{
4369-
if (!Impl.SwiftContext.LangOpts.ImportObjCGenerics) {
4370-
return nullptr;
4371-
}
43724369
auto typeParamList = decl->getTypeParamList();
43734370
if (!typeParamList) {
43744371
return nullptr;

lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
783783
if (Args.hasArg(OPT_disable_infer_iuos)) {
784784
Opts.InferIUOs = false;
785785
}
786-
Opts.ImportObjCGenerics |= Args.hasArg(OPT_enable_import_objc_generics);
787786

788787
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);
789788

0 commit comments

Comments
 (0)