From 1af4e1ca64a3ae7b3ca8671ecb95b9d799d464c1 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 11 Feb 2016 09:37:14 -0800 Subject: [PATCH] Removing unused function --- src/compiler/checker.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 611ffb79062..3e8b71b92e6 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -7843,11 +7843,6 @@ namespace ts { return !!(type.flags & TypeFlags.Union ? forEach((type).types, isTupleLikeType) : isTupleLikeType(type)); } - // Return true if the given contextual type provides an index signature of the given kind - function contextualTypeHasIndexSignature(type: Type, kind: IndexKind): boolean { - return !!(type.flags & TypeFlags.Union ? forEach((type).types, t => getIndexInfoOfStructuredType(t, kind)) : getIndexInfoOfStructuredType(type, kind)); - } - // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one // exists. Otherwise, it is the type of the string index signature in T, if one exists.