mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Remove extraneous code.
This commit is contained in:
parent
ce65c95580
commit
a44fef5028
@ -16,13 +16,5 @@ bool HttpServer::Listen(const QHostAddress& addr, quint16 port) {
|
||||
void HttpServer::NewConnection() {
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
QTcpSocket* socket = server_.nextPendingConnection();
|
||||
HttpConnection* conn = new HttpConnection(socket);
|
||||
}
|
||||
|
||||
void HttpServer::ReadyRead() {
|
||||
QTcpSocket* socket = qobject_cast<QTcpSocket*>(sender());
|
||||
Q_ASSERT(socket);
|
||||
while (socket->canReadLine()) {
|
||||
QByteArray line = socket->readLine();
|
||||
}
|
||||
new HttpConnection(socket);
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ class HttpServer : public QObject {
|
||||
|
||||
private slots:
|
||||
void NewConnection();
|
||||
void ReadyRead();
|
||||
|
||||
private:
|
||||
QTcpServer server_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user