kio: remove unused read timeout getters

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-29 15:44:06 +02:00
parent e879c440fb
commit d9847b4290
5 changed files with 0 additions and 30 deletions

View file

@ -22,7 +22,6 @@
// TIMEOUT VALUES
#define DEFAULT_RESPONSE_TIMEOUT 600 // 10 min.
#define DEFAULT_CONNECT_TIMEOUT 20 // 20 secs.
#define DEFAULT_READ_TIMEOUT 15 // 15 secs.
#define MIN_TIMEOUT_VALUE 2 // 2 secs.
// MINMUM SIZE FOR ABORTED DOWNLOAD TO BE KEPT

View file

@ -93,13 +93,6 @@ KSharedConfig::Ptr KProtocolManager::config()
}
/*=============================== TIMEOUT SETTINGS ==========================*/
int KProtocolManager::readTimeout()
{
KConfigGroup cg(config(), QString());
const int value = cg.readEntry("ReadTimeout", DEFAULT_READ_TIMEOUT);
return qMax(MIN_TIMEOUT_VALUE, value);
}
int KProtocolManager::connectTimeout()
{
KConfigGroup cg( config(), QString() );

View file

@ -63,11 +63,6 @@ public:
static QString defaultUserAgent();
/*=========================== TIMEOUT CONFIG ================================*/
/**
* Returns the preferred timeout value for reading from remote connections in seconds.
*/
static int readTimeout();
/**
* Returns the preferred timeout value for remote connections in seconds.
*/

View file

@ -1118,17 +1118,6 @@ int SlaveBase::responseTimeout()
return DEFAULT_RESPONSE_TIMEOUT;
}
int SlaveBase::readTimeout()
{
bool ok = false;
QString tmp = metaData(QLatin1String("ReadTimeout"));
int result = tmp.toInt(&ok);
if (ok) {
return result;
}
return DEFAULT_READ_TIMEOUT;
}
bool SlaveBase::wasKilled() const
{
return d->wasKilled;

View file

@ -507,12 +507,6 @@ public:
*/
int responseTimeout();
/**
* @return timeout value for read from subsequent data from
* remote host in secs.
*/
int readTimeout();
/**
* This function sets a timeout of @p timeout seconds and calls
* special(data) when the timeout occurs as if it was called by the