Skip to content

Commit f44ff38

Browse files
committed
AST: Remove unused ParamDecl::getParameterFlags()
1 parent 471f10f commit f44ff38

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4729,10 +4729,6 @@ class ParamDecl : public VarDecl {
47294729
/// was specified separately from the parameter name.
47304730
SourceLoc getArgumentNameLoc() const { return ArgumentNameLoc; }
47314731

4732-
/// Retrieve the parameter type flags corresponding to the declaration of
4733-
/// this parameter's argument type.
4734-
ParameterTypeFlags getParameterFlags() const;
4735-
47364732
SourceLoc getSpecifierLoc() const { return SpecifierLoc; }
47374733

47384734
bool isTypeLocImplicit() const { return Bits.ParamDecl.IsTypeLocImplicit; }

lib/AST/Decl.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4799,11 +4799,6 @@ ParamDecl *ParamDecl::createSelf(SourceLoc loc, DeclContext *DC,
47994799
return selfDecl;
48004800
}
48014801

4802-
ParameterTypeFlags ParamDecl::getParameterFlags() const {
4803-
return ParameterTypeFlags::fromParameterType(getType(), isVariadic(),
4804-
getValueOwnership());
4805-
}
4806-
48074802
/// Return the full source range of this parameter.
48084803
SourceRange ParamDecl::getSourceRange() const {
48094804
SourceLoc APINameLoc = getArgumentNameLoc();

0 commit comments

Comments
 (0)