1
0
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:
John Maguire 2010-12-30 13:06:22 +00:00
parent ce65c95580
commit a44fef5028
2 changed files with 1 additions and 10 deletions

View File

@ -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);
}

View File

@ -11,7 +11,6 @@ class HttpServer : public QObject {
private slots:
void NewConnection();
void ReadyRead();
private:
QTcpServer server_;