remove reverted include
This commit is contained in:
		
							parent
							
								
									f2f7abb9a8
								
							
						
					
					
						commit
						8010506d4e
					
				| @ -33,18 +33,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||||
| 
 | 
 | ||||||
| #include <zlib.h> | #include <zlib.h> | ||||||
| 
 | 
 | ||||||
| #include <memory> |  | ||||||
| 
 |  | ||||||
| struct ServerFactory | struct ServerFactory | ||||||
| { | { | ||||||
|     ServerFactory() = delete; |     ServerFactory() = delete; | ||||||
|     ServerFactory(const ServerFactory &) = delete; |     ServerFactory(const ServerFactory &) = delete; | ||||||
|     static std::unique_ptr<Server> CreateServer(std::string &ip_address, int ip_port, unsigned requested_num_threads) |     static Server *CreateServer(std::string &ip_address, int ip_port, unsigned requested_num_threads) | ||||||
|     { |     { | ||||||
|         SimpleLogger().Write() << "http 1.1 compression handled by zlib version " << zlibVersion(); |         SimpleLogger().Write() << "http 1.1 compression handled by zlib version " << zlibVersion(); | ||||||
|         const unsigned hardware_threads = std::max(1u, std::thread::hardware_concurrency()); |         const unsigned hardware_threads = std::max(1u, std::thread::hardware_concurrency()); | ||||||
|         const unsigned real_num_threads = std::min(hardware_threads, requested_num_threads); |         const unsigned real_num_threads = std::min(hardware_threads, requested_num_threads); | ||||||
|         return osrm::make_unique<Server>(ip_address, ip_port, real_num_threads); |         return new Server(ip_address, ip_port, real_num_threads); | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user