diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-29 11:32:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-29 18:33:32 +0200 |
commit | de7db883479bdeb44efc2caa6b8f7cfd3865d114 (patch) | |
tree | 6da485cc34c8f559f7c9796ba58c7b7ecaa52249 /svl/source | |
parent | 85141c9175af90511e3cb5c134dfbbc63961cd39 (diff) |
loplugin:unnecessarymethods
Change-Id: I1d7a9c2ca91816c9e550cd673e04599f5efcf5ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119668
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/inc/items_helper.hxx | 16 | ||||
-rw-r--r-- | svl/source/items/itemset.cxx | 13 |
2 files changed, 0 insertions, 29 deletions
diff --git a/svl/source/inc/items_helper.hxx b/svl/source/inc/items_helper.hxx index da81ecf334da..eb95f49d1f8c 100644 --- a/svl/source/inc/items_helper.hxx +++ b/svl/source/inc/items_helper.hxx @@ -30,22 +30,6 @@ namespace svl::detail { -inline std::pair<sal_uInt16, sal_uInt16> CountRangesOld(const sal_uInt16* pRanges) -{ - sal_uInt16 nCount = 0; - sal_uInt16 nCapacity = 0; - if (pRanges) - { - nCount = 1; - while (*pRanges) - { - nCount += 2; - nCapacity += rangeSize(pRanges[0], pRanges[1]); - pRanges += 2; - } - } - return { nCount, nCapacity }; -} /** * Determines the number of sal_uInt16s in a container of pairs of * sal_uInt16s, each representing a range of sal_uInt16s, and total capacity of the ranges. diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index d48bc568797a..418471183aed 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -69,19 +69,6 @@ SfxItemSet::SfxItemSet( assert(svl::detail::validRanges2(m_pWhichRanges)); } -SfxItemSet::SfxItemSet( - SfxItemPool & pool, - WhichRangesContainer&& wids, - std::size_t items): - m_pPool(&pool), m_pParent(nullptr), - m_pItems(new SfxPoolItem const *[items]{}), - m_pWhichRanges(std::move(wids)), - m_nCount(0) -{ - assert(m_pWhichRanges.size() != 0); - assert(svl::detail::validRanges2(m_pWhichRanges)); -} - SfxItemSet::SfxItemSet(SfxItemPool& pool, const WhichRangesContainer& wids) : SfxItemSet(pool, wids, svl::detail::CountRanges(wids)) { |