| 165 | } |
| 166 | |
| 167 | void WindowCullDead() |
| 168 | { |
| 169 | // Remove all windows in gWindowList that have the WindowFlag::dead flag |
| 170 | gWindowList.erase( |
| 171 | std::remove_if( |
| 172 | gWindowList.begin(), gWindowList.end(), [](auto&& w) -> bool { return w->flags.has(WindowFlag::dead); }), |
| 173 | gWindowList.end()); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * |
no test coverage detected