File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,7 +303,6 @@ namespace ts {
303303 const literalTypes = createMap<LiteralType>();
304304 const indexedAccessTypes = createMap<IndexedAccessType>();
305305 const conditionalTypes = createMap<ConditionalType>();
306- const substitutionTypes = createMap<SubstitutionType>();
307306 const evolvingArrayTypes: EvolvingArrayType[] = [];
308307 const undefinedProperties = createMap<Symbol>() as UnderscoreEscapedMap<Symbol>;
309308
@@ -7156,15 +7155,9 @@ namespace ts {
71567155 }
71577156
71587157 function getSubstitutionType(typeParameter: TypeParameter, substitute: Type) {
7159- const id = typeParameter.id + "," + substitute.id;
7160- const cached = substitutionTypes.get(id);
7161- if (cached) {
7162- return cached;
7163- }
71647158 const result = <SubstitutionType>createType(TypeFlags.Substitution);
71657159 result.typeParameter = typeParameter;
71667160 result.substitute = substitute;
7167- substitutionTypes.set(id, result);
71687161 return result;
71697162 }
71707163
You can’t perform that action at this time.
0 commit comments