remove unused enumerators from FTPErrors enum
Change-Id: I30a2cc41d246b5048f2514eb38ee8e3bef0ed41c
This commit is contained in:
parent
d198a8221d
commit
fe3c207911
@ -715,13 +715,7 @@ void FTPContent::insert(const InsertCommandArgument& aInsertCommand,
|
||||
} else if(m_aInfo.Type == FTP_FOLDER)
|
||||
m_aFTPURL.mkdir(bReplace);
|
||||
} catch(const curl_exception& e) {
|
||||
if(e.code() == FILE_EXIST_DURING_INSERT ||
|
||||
e.code() == FOLDER_EXIST_DURING_INSERT) {
|
||||
// Deprecated, not used anymore:
|
||||
NameClashException excep;
|
||||
excep.Name = m_aFTPURL.child();
|
||||
ucbhelper::cancelCommandExecution(Any(excep), Env);
|
||||
} else if(e.code() == FOLDER_MIGHT_EXIST_DURING_INSERT ||
|
||||
if(e.code() == FOLDER_MIGHT_EXIST_DURING_INSERT ||
|
||||
e.code() == FILE_MIGHT_EXIST_DURING_INSERT) {
|
||||
// Interact
|
||||
Reference<XInteractionHandler> xInt;
|
||||
|
@ -46,9 +46,7 @@ namespace ftp {
|
||||
class FTPContentProvider;
|
||||
|
||||
|
||||
enum FTPErrors { FILE_EXIST_DURING_INSERT = CURL_LAST +1,
|
||||
FOLDER_EXIST_DURING_INSERT,
|
||||
FOLDER_MIGHT_EXIST_DURING_INSERT,
|
||||
enum FTPErrors { FOLDER_MIGHT_EXIST_DURING_INSERT = CURL_LAST,
|
||||
FILE_MIGHT_EXIST_DURING_INSERT };
|
||||
|
||||
class malformed_exception : public std::exception { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user