Skip to content

Commit c8a6a50

Browse files
committed
AST: Remove unused functions in FeatureSet.cpp.
1 parent 731d91f commit c8a6a50

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,17 +3043,6 @@ static void suppressingFeatureSpecializeAttributeWithAvailability(
30433043
action();
30443044
}
30453045

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-
30573046
static void suppressingFeatureRetroactiveAttribute(
30583047
PrintOptions &options,
30593048
llvm::function_ref<void()> action) {

lib/AST/FeatureSet.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,6 @@ static bool usesFeatureSpecializeAttributeWithAvailability(Decl *decl) {
138138
return false;
139139
}
140140

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-
155141
static bool usesFeatureRetroactiveAttribute(Decl *decl) {
156142
auto ext = dyn_cast<ExtensionDecl>(decl);
157143
if (!ext)

0 commit comments

Comments
 (0)