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

Commit 98f204da authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Remove unused function from TouchState

The getWindow function is not used. Let's delete it.

Bug: 211379801
Test: atest inputflinger_tests
Change-Id: I66992111d93f7d522c457a909e451a57a3c9a3d7
parent 4da2bc58
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -138,14 +138,4 @@ sp<WindowInfoHandle> TouchState::getWallpaperWindow() const {
    return nullptr;
}

sp<WindowInfoHandle> TouchState::getWindow(const sp<IBinder>& token) const {
    for (const TouchedWindow& touchedWindow : windows) {
        const auto& windowHandle = touchedWindow.windowHandle;
        if (windowHandle->getToken() == token) {
            return windowHandle;
        }
    }
    return nullptr;
}

} // namespace android::inputdispatcher
+0 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@ struct TouchState {
    sp<android::gui::WindowInfoHandle> getFirstForegroundWindowHandle() const;
    bool isSlippery() const;
    sp<android::gui::WindowInfoHandle> getWallpaperWindow() const;
    sp<android::gui::WindowInfoHandle> getWindow(const sp<IBinder>&) const;
};

} // namespace inputdispatcher