diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c8ad1f66064..7dfb0cd2757 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8670,16 +8670,6 @@ namespace ts { } } - // function hasAssertionTypePredicate(signature: Signature): boolean { - // const predicate = getTypePredicateOfSignature(signature); - // return !!predicate && predicate.kind === TypePredicateKind.Assertion; - // } - - // function hasBooleanTypePredicate(signature: Signature): boolean { - // const predicate = getTypePredicateOfSignature(signature); - // return !!predicate && (predicate.kind === TypePredicateKind.This || predicate.kind === TypePredicateKind.Identifier); - // } - function getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined { if (!signature.resolvedTypePredicate) { if (signature.target) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ba1ad79a8c2..3cdfba2aafb 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3918,8 +3918,6 @@ namespace ts { resolvedSignature?: Signature; // Cached signature of signature node or call expression resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result - //maybeTypePredicate?: boolean; // Cached check whether call expression might reference a type predicate - //isAssertCall?: boolean; resolvedTypePredicate?: TypePredicate; // Cached type predicate for call expression enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible