Merge "Revert "Check if WindowInfosListener is present during remove"" into udc-dev
diff --git a/libs/gui/WindowInfosListenerReporter.cpp b/libs/gui/WindowInfosListenerReporter.cpp
index 2b34a0f..01e865d 100644
--- a/libs/gui/WindowInfosListenerReporter.cpp
+++ b/libs/gui/WindowInfosListenerReporter.cpp
@@ -62,10 +62,6 @@
     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);