kio: remove unimplemented KIO::SlaveBase::setLinkDest()

not even handled in KIO::SlaveBase::dispatch()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-22 20:50:05 +02:00
parent ab75b45d49
commit b7e764dfcd
3 changed files with 30 additions and 41 deletions

View file

@ -42,38 +42,36 @@ namespace KIO {
*/
enum Command {
CMD_HOST = '0', // 48
CMD_CONNECT = '1', // 49
CMD_DISCONNECT = '2', // 50
CMD_SLAVE_STATUS = '3', // 51
CMD_SLAVE_CONNECT = '4', // 52
CMD_NONE = 'A', // 65
CMD_TESTDIR = 'B', // 66
CMD_GET = 'C', // 67
CMD_PUT = 'D', // 68
CMD_STAT = 'E', // 69
CMD_MIMETYPE = 'F', // 70
CMD_LISTDIR = 'G', // 71
CMD_MKDIR = 'H', // 72
CMD_RENAME = 'I', // 73
CMD_COPY = 'J', // 74
CMD_DEL = 'K', // 75
CMD_CHMOD = 'L', // 76
CMD_SPECIAL = 'M', // 77
CMD_SETMODIFICATIONTIME = 'N', // 78
CMD_REPARSECONFIGURATION = 'O', // 79
CMD_META_DATA = 'P', // 80
CMD_SYMLINK = 'Q', // 81
CMD_SUBURL = 'R', // 82 Inform the slave about the url it is streaming on.
CMD_MESSAGEBOXANSWER = 'S', // 83
CMD_RESUMEANSWER = 'T', // 84
CMD_CONFIG = 'U', // 85
CMD_SETLINKDEST = 'V', // 86
CMD_OPEN = 'W', // 87
CMD_CHOWN = 'X', // 88
CMD_READ = 'Y', // 89
CMD_WRITE = 'Z',
CMD_SEEK = 91,
CMD_CLOSE = 92
CMD_CONNECT = '1',
CMD_DISCONNECT = '2',
CMD_SLAVE_STATUS = '3',
CMD_SLAVE_CONNECT = '4',
CMD_NONE = 'A',
CMD_GET = 'B',
CMD_PUT = 'C',
CMD_STAT = 'D',
CMD_MIMETYPE = 'E',
CMD_LISTDIR = 'F',
CMD_MKDIR = 'G',
CMD_RENAME = 'H',
CMD_COPY = 'I',
CMD_DEL = 'J',
CMD_CHMOD = 'K',
CMD_SPECIAL = 'L',
CMD_SETMODIFICATIONTIME = 'M',
CMD_REPARSECONFIGURATION = 'N',
CMD_META_DATA = 'O',
CMD_SYMLINK = 'P',
CMD_SUBURL = 'Q', // Inform the slave about the url it is streaming on.
CMD_MESSAGEBOXANSWER = 'R',
CMD_RESUMEANSWER = 'S',
CMD_CONFIG = 'T',
CMD_OPEN = 'U',
CMD_CHOWN = 'V',
CMD_READ = 'W',
CMD_WRITE = 'X',
CMD_SEEK = 'Y',
CMD_CLOSE = 'Z'
};
class JobPrivate: public KCompositeJobPrivate

View file

@ -687,8 +687,6 @@ void SlaveBase::copy(KUrl const &, KUrl const &, int, JobFlags)
{ error( ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, CMD_COPY)); }
void SlaveBase::del(KUrl const &, bool)
{ error( ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, CMD_DEL)); }
void SlaveBase::setLinkDest(const KUrl &, const QString&)
{ error( ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, CMD_SETLINKDEST)); }
void SlaveBase::mkdir(KUrl const &, int)
{ error( ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, CMD_MKDIR)); }
void SlaveBase::chmod(KUrl const &, int)

View file

@ -545,13 +545,6 @@ public:
*/
virtual void del( const KUrl &url, bool isfile);
/**
* Change the destination of a symlink
* @param url the url of the symlink to modify
* @param target the new destination (target) of the symlink
*/
virtual void setLinkDest( const KUrl& url, const QString& target );
/**
* Used for any command that is specific to this slave (protocol)
* Examples are : HTTP POST, mount and unmount (kio_file)