diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowInfo.java b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowInfo.java index 2015345d589..261d3db669d 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowInfo.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowInfo.java @@ -40,16 +40,9 @@ public interface DataFlowInfo { @NotNull Nullability getNullability(@NotNull DataFlowValue key); - /** - * Gets a set of all possible types for this value, INCLUDING the original (native) type - */ - @NotNull - Set getPossibleTypes(@NotNull DataFlowValue key, boolean withOriginalType); - /** * IMPORTANT: by default, the original (native) type for this value * are NOT included. So it's quite possible to get an empty set here. - * If you need also the original type, use getPossibleTypes(key, true) */ @NotNull Set getPossibleTypes(@NotNull DataFlowValue key); diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DelegatingDataFlowInfo.java b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DelegatingDataFlowInfo.java index fddf2ef8e3d..3391f074823 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DelegatingDataFlowInfo.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DelegatingDataFlowInfo.java @@ -131,17 +131,8 @@ import static org.jetbrains.kotlin.resolve.calls.smartcasts.Nullability.NOT_NULL @Override @NotNull public Set getPossibleTypes(@NotNull DataFlowValue key) { - return getPossibleTypes(key, false); - } - - @Override - @NotNull - public Set getPossibleTypes(@NotNull DataFlowValue key, boolean withOriginalType) { JetType originalType = key.getType(); Set types = collectTypesFromMeAndParents(key); - if (withOriginalType) { - types.add(originalType); - } if (getNullability(key).canBeNull()) { return types; }