mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user