Cleanup: remove unused GHOST function getAnyModifiedState.

Remove unused GHOST_WindowManager::getAnyModifiedState()
This commit is contained in:
Campbell Barton 2022-07-11 10:38:02 +10:00
parent 7f4ee97b9e
commit a83502f05f
2 changed files with 0 additions and 20 deletions

View File

@ -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;
}

View File

@ -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;