Kaydet (Commit) bc11bee3 authored tarafından Varun Dhall's avatar Varun Dhall Kaydeden (comit) Michael Stahl

Removing unused serialisation code from svl

Change-Id: Ia22ea346610e925cc6d499b0cc4bc768a419f909
Reviewed-on: https://gerrit.libreoffice.org/41229Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst e67dbbf9
This diff is collapsed.
......@@ -122,7 +122,6 @@ $(eval $(call gb_Library_add_exception_objects,svl,\
svl/source/config/languageoptions \
svl/source/crypto/cryptosign \
svl/source/filepicker/pickerhistory \
svl/source/filerec/filerec \
svl/source/items/aeitem \
svl/source/items/cenumitm \
svl/source/items/cintitem \
......
This diff is collapsed.
......@@ -25,6 +25,7 @@
#include <memory>
#include <unordered_map>
#include <vector>
#include <tools/stream.hxx>
class SfxPoolItem;
class SfxItemPoolUser;
......
......@@ -24,7 +24,6 @@
#include <tools/solar.h>
#include <svl/itempool.hxx>
#include <svl/SfxBroadcaster.hxx>
#include <svl/filerec.hxx>
#include "poolio.hxx"
#include <algorithm>
#include <memory>
......@@ -119,35 +118,6 @@ sal_uInt32 SfxItemPool::GetSurrogate(const SfxPoolItem *pItem) const
return SFX_ITEMS_NULL;
}
/**
* This method converts WhichIds from a file format to the version of the
* current pool.
* If the file format is older, the conversion tables (set by the pool developer
* using SetVersion()) are used. If the file format is newer the conversion tables
* loaded from the file format are used. In this case, not every WhichId can be
* mapped in which case we return 0.
*
* The calculation is only defined for WhichIds supported by the corresponding
* file version, which is guarded by an assertion.
*
* Precondition: Pool must be loaded
* Postcondition: Unchanged
* Runtime: linear(Count of the secondary pools) +
* linear(Difference of the old and newer version)
*
* @see SfxItemPool::IsLoadingVersionCurrent() const
* @see SfxItemPool::GetVersion() const
*/
sal_uInt16 SfxItemPool::GetNewWhich
(
sal_uInt16 nFileWhich // The WhichId loaded from the stream
) const
{
// Return original (nDiff==0) or mapped (nDiff!=0) Id
return nFileWhich;
}
OUString readByteString(SvStream& rStream)
{
return rStream.ReadUniOrByteString(rStream.GetStreamCharSet());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment