summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Patrick Williams <pdwilliams@google.com> 2023-03-04 12:55:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-04 12:55:38 +0000
commitd3fbc898a508441a7fe2796a260ada810da5d415 (patch)
tree6103479c2d3bab70d940ab4eebab24e737bc22f9 /libs
parent4b20f9214b98c5b6ab6df6ec016e6878461ae899 (diff)
parent4854af5fa5c713ddfefad8770b3cb9e7ae0a494f (diff)
Merge "Revert "Check if WindowInfosListener is present during remove"" into udc-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/WindowInfosListenerReporter.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/gui/WindowInfosListenerReporter.cpp b/libs/gui/WindowInfosListenerReporter.cpp
index 2b34a0fc47..01e865da6a 100644
--- a/libs/gui/WindowInfosListenerReporter.cpp
+++ b/libs/gui/WindowInfosListenerReporter.cpp
@@ -62,10 +62,6 @@ status_t WindowInfosListenerReporter::removeWindowInfosListener(
status_t status = OK;
{
std::scoped_lock lock(mListenersMutex);
- if (mWindowInfosListeners.find(windowInfosListener) == mWindowInfosListeners.end()) {
- return status;
- }
-
if (mWindowInfosListeners.size() == 1) {
binder::Status s = surfaceComposer->removeWindowInfosListener(this);
status = statusTFromBinderStatus(s);