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

Commit 438131ce authored by Mayank Garg's avatar Mayank Garg Committed by Android (Google) Code Review
Browse files

Merge "Removed dead code from TouchInputMapper" into main

parents c48c7e62 8445d195
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -537,18 +537,6 @@ std::optional<DisplayViewport> TouchInputMapper::findViewport() {
            return getDeviceContext().getAssociatedViewport();
        }

        const std::optional<std::string> associatedDisplayUniqueIdByDescriptor =
                getDeviceContext().getAssociatedDisplayUniqueIdByDescriptor();
        if (associatedDisplayUniqueIdByDescriptor) {
            return getDeviceContext().getAssociatedViewport();
        }

        const std::optional<std::string> associatedDisplayUniqueIdByPort =
                getDeviceContext().getAssociatedDisplayUniqueIdByPort();
        if (associatedDisplayUniqueIdByPort) {
            return getDeviceContext().getAssociatedViewport();
        }

        if (mDeviceMode == DeviceMode::POINTER) {
            std::optional<DisplayViewport> viewport =
                    mConfig.getDisplayViewportById(mConfig.defaultPointerDisplayId);