Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
f9a85e44
Commit
f9a85e44
authored
Oct 10, 2020
by
Alexander Lohnau
💬
Committed by
David Faure
Oct 10, 2020
Browse files
Remove dead code
parent
3fdf2083
Changes
6
Hide whitespace changes
Inline
Side-by-side
filter/filter.cc
View file @
f9a85e44
...
...
@@ -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
filter/filter.h
View file @
f9a85e44
...
...
@@ -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
;
...
...
fish/fish.cpp
View file @
f9a85e44
...
...
@@ -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
;
}
...
...
man/kio_man.cpp
View file @
f9a85e44
...
...
@@ -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
();
}
...
...
man/man2html.cpp
View file @
f9a85e44
...
...
@@ -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
}
//---------------------------------------------------------------------
...
...
network/network/builder/dnssd/dnssdnetworkbuilder.cpp
View file @
f9a85e44
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment