Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73f32757 authored by omarmt's avatar omarmt
Browse files

Remove unused code from MultiPointerDraggableNode

Test: Just a refactor
Bug: 336710600
Flag: com.android.systemui.scene_container
Change-Id: I53c4119f86dab73ec50ef1ba2a2154bbcc2a3c24
parent 2a54b7b8
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -115,18 +115,6 @@ private data class MultiPointerDraggableElement(
    }
}

private val TRAVERSE_KEY = Any()

/** Find the nearest [PointersInfoOwner] ancestor or throw. */
internal fun DelegatableNode.requireAncestorPointersInfoOwner(): PointersInfoOwner {
    val ancestorNode =
        checkNotNull(findNearestAncestor(TRAVERSE_KEY)) {
            "This should never happen! Couldn't find a MultiPointerDraggableNode. " +
                "Are we inside an SceneTransitionLayout?"
        }
    return ancestorNode as PointersInfoOwner
}

internal class MultiPointerDraggableNode(
    orientation: Orientation,
    enabled: () -> Boolean,