Merge pull request #7723 from practicalswift/gardening-20170223

[gardening] Shell fixes. Consistent headers. a-vs-an typos. Python fixes. Unused variables and methods.
This commit is contained in:
practicalswift
2017-02-27 14:05:05 +01:00
committed by GitHub
32 changed files with 33 additions and 44 deletions

View File

@@ -2321,15 +2321,6 @@ class GenericSignatureBuilder::InferRequirementsWalker : public TypeWalker {
unsigned MinDepth;
unsigned MaxDepth;
/// We cannot add requirements to archetypes from outer generic parameter
/// lists.
bool isOuterArchetype(PotentialArchetype *PA) {
unsigned ParamDepth = PA->getRootGenericParamKey().Depth;
assert(ParamDepth <= MaxDepth);
(void) MaxDepth;
return ParamDepth < MinDepth;
}
public:
InferRequirementsWalker(GenericSignatureBuilder &builder,
TypeRepr *typeRepr,