[Bf-blender-cvs] [439a1d240e8] temp-T97352-3d-texturing-seam-bleeding-b2: Cleanup: remove unused GHOST function getAnyModifiedState.

Campbell Barton noreply at git.blender.org
Mon Jul 11 15:36:22 CEST 2022


Commit: 439a1d240e8cd7c73f23b4a09a045b3079f092a5
Author: Campbell Barton
Date:   Mon Jul 11 10:38:02 2022 +1000
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB439a1d240e8cd7c73f23b4a09a045b3079f092a5

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