[Bf-blender-cvs] [a83502f05f0] master: Cleanup: remove unused GHOST function getAnyModifiedState.

Campbell Barton noreply at git.blender.org
Mon Jul 11 02:38:55 CEST 2022


Commit: a83502f05f017fc4ad5bd910aff32fa457ad6702
Author: Campbell Barton
Date:   Mon Jul 11 10:38:02 2022 +1000
Branches: master
https://developer.blender.org/rBa83502f05f017fc4ad5bd910aff32fa457ad6702

Cleanup: remove unused GHOST function getAnyModifiedState.

Remove unused GHOST_WindowManager::getAnyModifiedState()

===================================================================

M	intern/ghost/intern/GHOST_WindowManager.cpp
M	intern/ghost/intern/GHOST_WindowManager.h

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowManager.cpp b/intern/ghost/intern/GHOST_WindowManager.cpp
index 19684a44169..e8785cbdb24 100644
--- a/intern/ghost/intern/GHOST_WindowManager.cpp
+++ b/intern/ghost/intern/GHOST_WindowManager.cpp
@@ -162,17 +162,3 @@ GHOST_IWindow *GHOST_WindowManager::getWindowAssociatedWithOSWindow(void *osWind
   }
   return nullptr;
 }
-
-bool GHOST_WindowManager::getAnyModifiedState()
-{
-  bool isAnyModified = false;
-  std::vector<GHOST_IWindow *>::iterator iter;
-
-  for (iter = m_windows.begin(); iter != m_windows.end(); ++iter) {
-    if ((*iter)->getModifiedState()) {
-      isAnyModified = true;
-    }
-  }
-
-  return isAnyModified;
-}
diff --git a/intern/ghost/intern/GHOST_WindowManager.h b/intern/ghost/intern/GHOST_WindowManager.h
index 9d20413c433..bf7a0f4ec61 100644
--- a/intern/ghost/intern/GHOST_WindowManager.h
+++ b/intern/ghost/intern/GHOST_WindowManager.h
@@ -109,12 +109,6 @@ class GHOST_WindowManager {
    */
   GHOST_IWindow *getWindowAssociatedWithOSWindow(void *osWindow);
 
-  /**
-   * Return true if any windows has a modified status
-   * \return True if any window has unsaved changes
-   */
-  bool getAnyModifiedState();
-
  protected:
   /** The list of windows managed */
   std::vector<GHOST_IWindow *> m_windows;



More information about the Bf-blender-cvs mailing list