From c45f90f35cd1b3690e6d9b5a54dd3425e3447abe Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Fri, 31 May 2019 11:33:21 -0700 Subject: [PATCH] Remove now-redundant code --- src/compiler/checker.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index a4986a77200c7..decb4da0681bd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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); }