mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-30 18:53:54 +01:00 
			
		
		
		
	Remove unused Registry#Unregister()
This commit is contained in:
		
							parent
							
								
									402a6bbf40
								
							
						
					
					
						commit
						07b274ec45
					
				| @ -40,19 +40,6 @@ public: | ||||
| 		RegisterInternal(name, item, lock); | ||||
| 	} | ||||
| 
 | ||||
| 	void Unregister(const String& name) | ||||
| 	{ | ||||
| 		size_t erased; | ||||
| 
 | ||||
| 		{ | ||||
| 			std::unique_lock<std::mutex> lock(m_Mutex); | ||||
| 			erased = m_Items.erase(name); | ||||
| 		} | ||||
| 
 | ||||
| 		if (erased > 0) | ||||
| 			OnUnregistered(name); | ||||
| 	} | ||||
| 
 | ||||
| 	void Clear() | ||||
| 	{ | ||||
| 		typename Registry<U, T>::ItemMap items; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user