FIR: Remove unused TowerGroupKind.Static

This commit is contained in:
Denis Zharkov
2020-04-30 11:12:44 +03:00
parent 56c793ffc6
commit e8232fe471
@@ -28,8 +28,6 @@ sealed class TowerGroupKind(private val index: Int) : Comparable<TowerGroupKind>
class Top(depth: Int) : WithDepth(70, depth)
class Static(depth: Int) : WithDepth(80, depth)
object Last : TowerGroupKind(Integer.MAX_VALUE)
override fun compareTo(other: TowerGroupKind): Int {
@@ -71,8 +69,6 @@ private constructor(
fun TopPrioritized(depth: Int) = kindOf(TowerGroupKind.TopPrioritized(depth))
fun Static(depth: Int) = kindOf(TowerGroupKind.Static(depth))
val Last = kindOf(TowerGroupKind.Last)
}
@@ -88,8 +84,6 @@ private constructor(
fun Top(depth: Int) = kindOf(TowerGroupKind.Top(depth))
fun Static(depth: Int) = kindOf(TowerGroupKind.Static(depth))
// Treating `a.foo()` common calls as more prioritized than `a.foo.invoke()`
// It's not the same as TowerGroupKind because it's not about tower levels, but rather a different dimension semantically.
// It could be implemented via another TowerGroupKind, but it's not clear what priority should be assigned to the new TowerGroupKind