Removing unused functions

This commit is contained in:
Anders Hejlsberg 2016-03-04 15:51:22 -08:00
parent 15b240548f
commit 25a72d6085

View file

@ -4767,25 +4767,6 @@ namespace ts {
}
}
function containsTypeAny(types: Type[]): boolean {
for (const type of types) {
if (isTypeAny(type)) {
return true;
}
}
return false;
}
function removeAllButLast(types: Type[], typeToRemove: Type) {
let i = types.length;
while (i > 0 && types.length > 1) {
i--;
if (types[i] === typeToRemove) {
types.splice(i, 1);
}
}
}
// We reduce the constituent type set to only include types that aren't subtypes of other types, unless
// the noSubtypeReduction flag is specified, in which case we perform a simple deduplication based on
// object identity. Subtype reduction is possible only when union types are known not to circularly