From 89aef7ec59390ff5bbff2c6cc0160948ab5d07bf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Sep 2024 14:49:59 +0200 Subject: [PATCH] TRANSFER_ACCESSINGROOT is unused since commit 03b2320067ba3d9855e075044e0427bc7f040bc2 Author: Jens-Heiner Rechtien Date: Mon May 10 13:20:50 2004 +0000 INTEGRATION: CWS relocinst (1.30.68); FILE MERGED Change-Id: I01ad2cc00526cd4308aec9cbddcee3ef97baddd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174304 Reviewed-by: Noel Grandin Tested-by: Jenkins --- ucb/source/ucp/file/filerror.hxx | 1 - ucb/source/ucp/file/filglob.cxx | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/ucb/source/ucp/file/filerror.hxx b/ucb/source/ucp/file/filerror.hxx index ed6e34ce86b4..38b32fec1959 100644 --- a/ucb/source/ucp/file/filerror.hxx +++ b/ucb/source/ucp/file/filerror.hxx @@ -76,7 +76,6 @@ enum class TaskHandlerErr { VALIDFILESTATUSWHILE_FOR_REMOVE , DIRECTORYEXHAUSTED_FOR_REMOVE , - TRANSFER_ACCESSINGROOT , TRANSFER_INVALIDSCHEME , TRANSFER_INVALIDURL , TRANSFER_DESTFILETYPE , diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx index 6e42d975646c..c25f21789313 100644 --- a/ucb/source/ucp/file/filglob.cxx +++ b/ucb/source/ucp/file/filglob.cxx @@ -758,16 +758,6 @@ namespace fileaccess { aMsg, xComProc ); } - else if( errorCode == TaskHandlerErr::TRANSFER_ACCESSINGROOT ) - { - ioErrorCode = IOErrorCode_WRITE_PROTECTED; - cancelCommandExecution( - ioErrorCode, - generateErrorArguments(aUncPath), - xEnv, - u"accessing the root during transfer"_ustr, - xComProc ); - } else if( errorCode == TaskHandlerErr::TRANSFER_INVALIDSCHEME ) { aAny <<= InteractiveBadTransferURLException(