1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Remove unused EmptyNetworkReply

This commit is contained in:
David Rosca 2018-03-01 19:06:52 +01:00
parent 2ab2e80630
commit 3945cb76bb
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
4 changed files with 0 additions and 84 deletions

View File

@ -193,7 +193,6 @@ set(SRCS ${SRCS}
tools/delayedfilewatcher.cpp
tools/desktopfile.cpp
tools/docktitlebarwidget.cpp
tools/emptynetworkreply.cpp
tools/enhancedmenu.cpp
tools/focusselectlineedit.cpp
tools/frame.cpp

View File

@ -1,43 +0,0 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#include "emptynetworkreply.h"
#include <QTimer>
EmptyNetworkReply::EmptyNetworkReply(QObject* parent)
: QNetworkReply(parent)
{
setOperation(QNetworkAccessManager::GetOperation);
setError(QNetworkReply::OperationCanceledError, QSL("Falkon:No Error"));
open(QIODevice::ReadOnly);
QTimer::singleShot(0, this, SLOT(delayedFinish()));
}
void EmptyNetworkReply::delayedFinish()
{
emit finished();
}
qint64 EmptyNetworkReply::readData(char* data, qint64 maxSize)
{
Q_UNUSED(data)
Q_UNUSED(maxSize)
return 0;
}

View File

@ -1,39 +0,0 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#ifndef EMPTYNETWORKREPLY_H
#define EMPTYNETWORKREPLY_H
#include <QNetworkReply>
#include "qzcommon.h"
class FALKON_EXPORT EmptyNetworkReply : public QNetworkReply
{
Q_OBJECT
public:
explicit EmptyNetworkReply(QObject* parent = 0);
private Q_SLOTS:
void delayedFinish();
protected:
qint64 readData(char* data, qint64 maxSize);
void abort() { }
};
#endif // EMPTYNETWORKREPLY_H

View File

@ -21,7 +21,6 @@
#include "webpage.h"
#include "pluginproxy.h"
#include "mainapplication.h"
#include "emptynetworkreply.h"
#include "tabwidget.h"
#include "webtab.h"
#include "../config.h"