diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-14 11:15:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-14 14:07:43 +0000 |
commit | 002d3a9474d92929df8089ee03f6277f45a5ef77 (patch) | |
tree | 348b8cfef9a07b3703f681f2132ea43470100fb4 /sw | |
parent | 6880d32d851783a56c977872df5fbf11b507876a (diff) |
cid#1212509 Logically dead code
accept the original logic then and drop the dead path instead of
the attempt to "fix it" of
commit 0d6f45377592a62ff4ee510d5fbd3bdd9e20160a
Author: Caolán McNamara <caolanm@redhat.com>
Date: Wed Oct 15 09:52:01 2014 +0100
coverity#1212509 Logically dead code
Change-Id: I373a85f53ceb395e27f85cc44cd17f650088b5f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144160
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unochart.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 03886d20bc5d..34af9f068002 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -751,28 +751,13 @@ uno::Reference< chart2::data::XDataSource > SwChartDataProvider::Impl_createData sal_Int32 nNumLDS = 0; if (oiEnd > 0) { - sal_Int32 nFirstSeqLen = 0; - sal_Int32 nFirstSeqLabelIdx = -1; for (oi = 0; oi < oiEnd; ++oi) { - bool bFirstFound = false; // row/col used at all? if (aDataStartIdx[oi] != -1 && (!bFirstIsLabel || aLabelIdx[oi] != -1)) { ++nNumLDS; - if (!bFirstFound) - { - nFirstSeqLen = aDataLen[oi]; - nFirstSeqLabelIdx = aLabelIdx[oi]; - bFirstFound = true; - } - else - { - if (nFirstSeqLen != aDataLen[oi] || - nFirstSeqLabelIdx != aLabelIdx[oi]) - throw lang::IllegalArgumentException(); - } } } } |