From 34e27e2cb8c2fd487a160bb57d27db9dae8ebf05 Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Mon, 21 Oct 2024 11:28:31 +0200 Subject: [PATCH] tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 780, 786 Change-Id: I9152c711ab25f0e4cc60ce67c2ad1089cca6992e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175306 Tested-by: Jenkins Reviewed-by: David Gilbert --- unotools/source/ucbhelper/ucblockbytes.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 08fe40b7c257..6403204bc595 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -776,11 +776,6 @@ static bool UCBOpenContentSync( break; } case Moderator::ResultType::COMMANDABORTED: - { - bAborted = true; - xLockBytes->SetError( ERRCODE_ABORT ); - break; - } case Moderator::ResultType::COMMANDFAILED: { bAborted = true;