remove unneeded code.

This commit is contained in:
2025-04-01 17:50:02 +03:00
parent f483c97935
commit e749c21a61
29 changed files with 1116 additions and 2122 deletions

View File

@@ -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() {