From 4854af5fa5c713ddfefad8770b3cb9e7ae0a494f Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Sat, 4 Mar 2023 04:12:03 +0000 Subject: Revert "Check if WindowInfosListener is present during remove" Revert submission 21756542-window-infos-listener-unregister-on-cleanup Reason for revert: b/271650598 Reverted changes: /q/submissionid:21756542-window-infos-listener-unregister-on-cleanup Change-Id: I577f326cd6f270e9228358df04509aac60caaef5 --- libs/gui/WindowInfosListenerReporter.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libs') 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); -- cgit v1.2.3-59-g8ed1b