Skip to content

Commit ddc05a3

Browse files
committed
Remove unused SILParameterInfo/SILResultInfo::subst helpers.
NFC.
1 parent 65155cb commit ddc05a3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

include/swift/AST/Types.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,16 +2692,6 @@ class SILParameterInfo {
26922692
return getWithType(fn(getType()));
26932693
}
26942694

2695-
/// Replace references to substitutable types with new, concrete types and
2696-
/// return the substituted result.
2697-
///
2698-
/// The API is comparable to Type::subst.
2699-
SILParameterInfo subst(ModuleDecl *module, TypeSubstitutionMap &substitutions,
2700-
SubstOptions options) const {
2701-
Type type = getType().subst(module, substitutions, options);
2702-
return getWithType(type->getCanonicalType());
2703-
}
2704-
27052695
void profile(llvm::FoldingSetNodeID &id) {
27062696
id.AddPointer(Ty.getPointer());
27072697
id.AddInteger((unsigned)Convention);
@@ -2788,16 +2778,6 @@ class SILResultInfo {
27882778
return getWithType(fn(getType()));
27892779
}
27902780

2791-
/// Replace references to substitutable types with new, concrete types and
2792-
/// return the substituted result.
2793-
///
2794-
/// The API is comparable to Type::subst.
2795-
SILResultInfo subst(ModuleDecl *module, TypeSubstitutionMap &substitutions,
2796-
SubstOptions options) const {
2797-
Type type = getType().subst(module, substitutions, options);
2798-
return getWithType(type->getCanonicalType());
2799-
}
2800-
28012781
void profile(llvm::FoldingSetNodeID &id) {
28022782
id.AddPointer(TypeAndConvention.getOpaqueValue());
28032783
}

0 commit comments

Comments
 (0)