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

Commit 6f6f00a2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unused code from MultiPointerDraggableNode" into main

parents 356b8675 73f32757
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,