summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-04 12:03:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-04 14:27:53 +0100
commit4f11182566b02f9f1c1821985a94b4b4de363fbb (patch)
tree952d356c3fd9c14a94536f7f25c006608b6a5d13 /editeng
parent3861ec5e6617f4b01cdf45ae0cb37062190c42e5 (diff)
GetTrueSlotId is dead
The only place is is used is ConvertAndPutItems. Which only loops over EE_PARA* which ids. But the only things which define slotid<->whichid mappings are XATTR*, SDATTR*, SCHATTR*. Which means that this code ConvertAndPutItems is dead, and that is the last place using GetTrueSlotId. Change-Id: I3037c25c2c15087572abacc9642970936824678d Reviewed-on: https://gerrit.libreoffice.org/47377 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 07a495d2bb1f..0896b62af791 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -886,14 +886,7 @@ void ConvertAndPutItems( SfxItemSet& rDest, const SfxItemSet& rSource, const Map
{
// If possible go through SlotID ...
- sal_uInt16 nSourceWhich = nWhich;
- sal_uInt16 nSlot = pDestPool->GetTrueSlotId( nWhich );
- if ( nSlot )
- {
- sal_uInt16 nW = pSourcePool->GetTrueWhich( nSlot );
- if ( nW )
- nSourceWhich = nW;
- }
+ sal_uInt16 const nSourceWhich = nWhich;
if ( rSource.GetItemState( nSourceWhich, false ) == SfxItemState::SET )
{