| 40 | } |
| 41 | |
| 42 | void LayerStack::PopLayer(const Ref<Layer>& layer) { |
| 43 | const auto it = std::find_if(std::begin(m_layers), std::end(m_layers), [&layer](const Ref<Layer>& x) { return x == layer; }); |
| 44 | |
| 45 | if (it != std::end(m_layers)) { |
| 46 | current_it = m_layers.erase(it); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | void LayerStack::PopLayer(Ref<Layer>&& layer) { |
| 51 | const auto it = std::find_if(std::begin(m_layers), std::end(m_layers), [&layer](const Ref<Layer>& x) { return x == layer; }); |
nothing calls this directly
no outgoing calls
no test coverage detected