Commit f9a85e44 authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by David Faure

Remove dead code

parent 3fdf2083
......@@ -92,10 +92,6 @@ void FilterProtocol::get(const QUrl& url)
return;
}
#if 0
needSubUrlData();
#endif
filter->init(QIODevice::ReadOnly);
bool bNeedHeader = true;
......@@ -112,12 +108,7 @@ void FilterProtocol::get(const QUrl& url)
{
if (filter->inBufferEmpty())
{
#if 0
dataReq(); // Request data
result = readData( inputBuffer);
#else
result = localFile.read(inputBuffer.data(), inputBuffer.size());
#endif
qDebug(KIO_FILTER_DEBUG) << "requestData: got " << result;
if (result <= 0)
{
......@@ -172,12 +163,7 @@ void FilterProtocol::get(const QUrl& url)
}
if (!bError) {
#if 0
dataReq(); // Request data
result = readData( inputBuffer);
#else
result = localFile.read(inputBuffer.data(), inputBuffer.size());
#endif
qDebug(KIO_FILTER_DEBUG) << "requestData: got" << result << "(expecting 0)";
data(QByteArray()); // Send EOF
}
......@@ -191,15 +177,3 @@ void FilterProtocol::get(const QUrl& url)
}
subURL = QUrl(); // Clear subURL
}
#if 0
void FilterProtocol::put( const KUrl &/*url*/, int, KIO::JobFlags /* _flags */ )
{
error( KIO::ERR_UNSUPPORTED_ACTION, QString::fromLatin1("put"));
}
void FilterProtocol::setSubURL(const QUrl &url)
{
subURL = url;
}
#endif
......@@ -40,10 +40,6 @@ public:
FilterProtocol( const QByteArray & protocol, const QByteArray &pool, const QByteArray &app );
void get( const QUrl &url ) override;
#if 0
virtual void put( const QUrl &url, int _mode, KIO::JobFlags _flags );
virtual void setSubURL(const QUrl &url);
#endif
private:
QUrl subURL;
......
......@@ -553,10 +553,6 @@ void fishProtocol::writeChild(const char *buf, KIO::fileoffset_t len) {
#else
void fishProtocol::writeChild(const QByteArray &buf, KIO::fileoffset_t len) {
if (outBufPos >= 0 && outBuf.size()) {
#endif
#if 0
QString debug = QString::fromLatin1(outBuf,outBufLen);
if (len > 0) myDebug( << "write request while old one is pending, throwing away input (" << outBufLen << "," << outBufPos << "," << debug.left(10) << "...)");
#endif
return;
}
......
......@@ -354,12 +354,7 @@ QStringList MANProtocol::findPages(const QString &_section,
//qCDebug(KIO_MAN_LOG) <<" after while loop";
::closedir( dp );
#if 0
qCDebug(KIO_MAN_LOG)<<"================-";
qCDebug(KIO_MAN_LOG)<<"star=="<<star;
qCDebug(KIO_MAN_LOG)<<"it_s=="<<it_s;
qCDebug(KIO_MAN_LOG)<<"================+";
#endif
if ( it_s != star ) { // in that case we only look around for sections
//qCDebug(KIO_MAN_LOG)<<"Within if ( it_s != star )";
const QString dir = man_dir + QString("/man") + (it_real) + '/';
......@@ -711,13 +706,6 @@ void MANProtocol::stat( const QUrl& url)
entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("text/html"));
#if 0 // not useful, is it?
QString newUrl = "man:"+title;
if (!section.isEmpty())
newUrl += QString("(%1)").arg(section);
entry.insert(KIO::UDSEntry::UDS_URL, newUrl);
#endif
statEntry(entry);
finished();
}
......
......@@ -3116,13 +3116,6 @@ void getArguments(/* const */ char *&c, QList<QByteArray> &args, QList<char*> *a
}
if ( *c ) c++;
#if 0
for (int i = 0; i < args.count(); i++)
{
qWarning("ARG:%d >>>%s<<<", i, args[i].data());
}
#endif
}
//---------------------------------------------------------------------
......
......@@ -97,17 +97,6 @@ void DNSSDNetworkBuilder::removeServiceType( const QString& serviceType )
// the serviceRemoved calls won't reach us.
// we could also go through all the devices and remove the services manually as a fix
return;
#if 0
QHash<QString,KDNSSD::ServiceBrowser*>::Iterator it = mServiceBrowserTable.find( serviceType );
if( it == mServiceBrowserTable.end() )
return;
KDNSSD::ServiceBrowser* serviceBrowser = *it;
mServiceBrowserTable.erase( it );
// TODO: will all servicesRemoved be called before? on test NO!
serviceBrowser->deleteLater();
#endif
}
void DNSSDNetworkBuilder::addService( KDNSSD::RemoteService::Ptr service )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment