File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -3043,17 +3043,6 @@ static void suppressingFeatureSpecializeAttributeWithAvailability(
3043
3043
action ();
3044
3044
}
3045
3045
3046
- static void
3047
- suppressingFeatureLexicalLifetimes (PrintOptions &options,
3048
- llvm::function_ref<void ()> action) {
3049
- unsigned originalExcludeAttrCount = options.ExcludeAttrList .size ();
3050
- options.ExcludeAttrList .push_back (DeclAttrKind::EagerMove);
3051
- options.ExcludeAttrList .push_back (DeclAttrKind::NoEagerMove);
3052
- options.ExcludeAttrList .push_back (DeclAttrKind::LexicalLifetimes);
3053
- action ();
3054
- options.ExcludeAttrList .resize (originalExcludeAttrCount);
3055
- }
3056
-
3057
3046
static void suppressingFeatureRetroactiveAttribute (
3058
3047
PrintOptions &options,
3059
3048
llvm::function_ref<void ()> action) {
Original file line number Diff line number Diff line change @@ -138,20 +138,6 @@ static bool usesFeatureSpecializeAttributeWithAvailability(Decl *decl) {
138
138
return false ;
139
139
}
140
140
141
- static bool hasParameterPacks (Decl *decl) {
142
- if (auto genericContext = decl->getAsGenericContext ()) {
143
- auto sig = genericContext->getGenericSignature ();
144
- if (llvm::any_of (sig.getGenericParams (),
145
- [&](const GenericTypeParamType *GP) {
146
- return GP->isParameterPack ();
147
- })) {
148
- return true ;
149
- }
150
- }
151
-
152
- return false ;
153
- }
154
-
155
141
static bool usesFeatureRetroactiveAttribute (Decl *decl) {
156
142
auto ext = dyn_cast<ExtensionDecl>(decl);
157
143
if (!ext)
You can’t perform that action at this time.
0 commit comments