mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 10:44:49 +01:00 
			
		
		
		
	log/backend: Make use of erase_if
Same behavior, but less verbose.
This commit is contained in:
		
							parent
							
								
									9e7713c150
								
							
						
					
					
						commit
						aaaca1cd6d
					
				| @ -56,10 +56,10 @@ public: | ||||
| 
 | ||||
|     void RemoveBackend(std::string_view backend_name) { | ||||
|         std::lock_guard lock{writing_mutex}; | ||||
|         const auto it = | ||||
|             std::remove_if(backends.begin(), backends.end(), | ||||
|                            [&backend_name](const auto& i) { return backend_name == i->GetName(); }); | ||||
|         backends.erase(it, backends.end()); | ||||
| 
 | ||||
|         std::erase_if(backends, [&backend_name](const auto& backend) { | ||||
|             return backend_name == backend->GetName(); | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     const Filter& GetGlobalFilter() const { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user