From 5fa0b7a5699814ca7b3bc74101ad5de11b6ddc2e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 22 Dec 2022 22:26:07 +0200 Subject: [PATCH] kio: remove unused port-related definitions Signed-off-by: Ivailo Monev --- kio/kio/global.cpp | 1 - kio/kio/global.h | 8 +++----- kio/kio/ioslave_defaults.h | 8 +------- kio/kio/job_p.h | 10 ++++++---- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/kio/kio/global.cpp b/kio/kio/global.cpp index e8a06cb8..cdea7cc4 100644 --- a/kio/kio/global.cpp +++ b/kio/kio/global.cpp @@ -38,7 +38,6 @@ #include // S_ISDIR #include #include - #include #include #include diff --git a/kio/kio/global.h b/kio/kio/global.h index fd23a599..53f68df3 100644 --- a/kio/kio/global.h +++ b/kio/kio/global.h @@ -23,19 +23,17 @@ #include #include // for QFile::Permissions +#include +#include // for pixmapForUrl #include -#include // for pixmapForUrl +#include #include // mode_t -#include - class KUrl; class KJobTrackerInterface; -#include - /** * @short A namespace for KIO globals * diff --git a/kio/kio/ioslave_defaults.h b/kio/kio/ioslave_defaults.h index 3416c4f1..470da933 100644 --- a/kio/kio/ioslave_defaults.h +++ b/kio/kio/ioslave_defaults.h @@ -32,14 +32,8 @@ // PORT DEFAULTS #define DEFAULT_FTP_PORT 21 #define DEFAULT_SFTP_PORT 22 -#define DEFAULT_HTTP_PORT 80 -#define DEFAULT_HTTPS_PORT 443 - -// OTHER GENERIC PORT DEFAULTS -#define DEFAULT_PROXY_PORT 8080 -#define MAX_PORT_VALUE 65535 // DEFAULT USER AGENT KEY - ENABLES OS NAME #define DEFAULT_USER_AGENT_KEYS "om" // Show OS, Machine -#endif +#endif // KIO_IOSLAVE_DEFAULTS_H diff --git a/kio/kio/job_p.h b/kio/kio/job_p.h index cc3c8fc3..dff24611 100644 --- a/kio/kio/job_p.h +++ b/kio/kio/job_p.h @@ -85,10 +85,12 @@ namespace KIO { * Some extra storage space for jobs that don't have their own * private d pointer. */ - enum { EF_TransferJobAsync = (1 << 0), - EF_TransferJobNeedData = (1 << 1), - EF_TransferJobDataSent = (1 << 2), - EF_KillCalled = (1 << 3) }; + enum { + EF_TransferJobAsync = (1 << 0), + EF_TransferJobNeedData = (1 << 1), + EF_TransferJobDataSent = (1 << 2), + EF_KillCalled = (1 << 3) + }; // Maybe we could use the QObject parent/child mechanism instead // (requires a new ctor, and moving the ctor code to some init()).