Skip to content

Commit

Permalink
Remove now-redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed May 31, 2019
1 parent a007f56 commit c45f90f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/compiler/checker.ts
Expand Up @@ -14094,12 +14094,6 @@ namespace ts {
if (unreliable) {
variance |= VarianceFlags.Unreliable;
}
const covariantID = getRelationKey(typeWithSub, typeWithSuper, assignableRelation);
const contravariantID = getRelationKey(typeWithSuper, typeWithSub, assignableRelation);
// We delete the results of these checks, as we want them to actually be run, see the `Unmeasurable` variance we cache,
// And then fall back to a structural result.
assignableRelation.delete(covariantID);
assignableRelation.delete(contravariantID);
}
variances.push(variance);
}
Expand Down

0 comments on commit c45f90f

Please sign in to comment.