remove unneeded code.
This commit is contained in:
		@@ -1,9 +1,10 @@
 | 
			
		||||
#include "http_server.h"
 | 
			
		||||
 | 
			
		||||
#include <qobjectdefs.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <utils/utils.h>
 | 
			
		||||
#include <iostream>
 | 
			
		||||
#include <ofdscene.h>
 | 
			
		||||
#include <mainwindow.h>
 | 
			
		||||
#include <thread>
 | 
			
		||||
 | 
			
		||||
void HttpServer::generateRandomPort() {
 | 
			
		||||
@@ -88,7 +89,7 @@ void HttpServer::handleClient(int clientSocket) {
 | 
			
		||||
        std::cerr << response.length() << std::endl;
 | 
			
		||||
        std::cerr << QObject::tr("Could not send message").toStdString() << std::endl;
 | 
			
		||||
    }
 | 
			
		||||
    emit ((OFDScene *)caller)->httpNewMessage(QString::fromStdString(std::string(buffer)));
 | 
			
		||||
    emit ((MainWindow *)caller)->httpNewMessage(QString::fromStdString(std::string(buffer)));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void HttpServer::acceptClients() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user