Minor, remove TypeSystemContext.isNotNullNothing

Use equivalent isNothing instead
This commit is contained in:
Alexander Udalov
2019-06-27 01:00:10 +02:00
parent c452934f5b
commit 331f0291ce
5 changed files with 1 additions and 19 deletions
@@ -347,12 +347,6 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext {
return this is ConeClassLikeSymbol && classId == StandardClassIds.Nothing
}
override fun KotlinTypeMarker.isNotNullNothing(): Boolean {
require(this is ConeKotlinType)
return typeConstructor().isNothingConstructor() && !this.nullability.isNullable
}
override fun SimpleTypeMarker.isSingleClassifierType(): Boolean {
if (isError()) return false
if (this is ConeCapturedType) return true