summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorVarun Dhall <varun.dhall@studentpartner.com>2017-08-14 22:08:36 +0530
committerMichael Stahl <mstahl@redhat.com>2017-08-16 11:08:39 +0200
commitb021353dd62c3d8c9ee0281753b88f6304a2514d (patch)
tree4ab481aa4f8f1fc34b78247d8c5f28532383a749 /svx
parentb607f62fde45a907f17545f4073e53d308b4cd1f (diff)
Removing unused serialisation code
Change-Id: Id31c8de69043d393f005f83d5c7eba878af5119c Reviewed-on: https://gerrit.libreoffice.org/41149 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/items/pageitem.cxx49
-rw-r--r--svx/source/xoutdev/xattr.cxx18
2 files changed, 0 insertions, 67 deletions
diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx
index 0e59f4e72555..18c4981473ce 100644
--- a/svx/source/items/pageitem.cxx
+++ b/svx/source/items/pageitem.cxx
@@ -229,38 +229,6 @@ bool SvxPageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
return true;
}
-
-SfxPoolItem* SvxPageItem::Create( SvStream& rStream, sal_uInt16 ) const
-{
- sal_uInt8 eType;
- bool bLand;
- sal_uInt16 nUse;
-
- // UNICODE: rStream >> sStr;
- OUString sStr = rStream.ReadUniOrByteString( rStream.GetStreamCharSet() );
-
- rStream.ReadUChar( eType );
- rStream.ReadCharAsBool( bLand );
- rStream.ReadUInt16( nUse );
-
- SvxPageItem* pPage = new SvxPageItem( Which() );
- pPage->SetDescName( sStr );
- pPage->SetNumType( (SvxNumType)eType );
- pPage->SetLandscape( bLand );
- pPage->SetPageUsage( (SvxPageUsage)nUse );
- return pPage;
-}
-
-
-SvStream& SvxPageItem::Store( SvStream &rStrm, sal_uInt16 /*nItemVersion*/ ) const
-{
- // UNICODE: rStrm << aDescName;
- rStrm.WriteUniOrByteString(aDescName, rStrm.GetStreamCharSet());
-
- rStrm.WriteUChar( eNumType ).WriteBool( bLandscape ).WriteUInt16( (sal_uInt16)eUse );
- return rStrm;
-}
-
// HeaderFooterSet
SvxSetItem::SvxSetItem( const sal_uInt16 nId, const SfxItemSet& rSet ) :
@@ -298,22 +266,5 @@ bool SvxSetItem::GetPresentation
return false;
}
-SfxPoolItem* SvxSetItem::Create(SvStream &rStrm, sal_uInt16 /*nVersion*/) const
-{
- SfxItemSet* _pSet = new SfxItemSet( *GetItemSet().GetPool(),
- GetItemSet().GetRanges() );
-
- _pSet->Load( rStrm );
-
- return new SvxSetItem( Which(), *_pSet );
-}
-
-SvStream& SvxSetItem::Store(SvStream &rStrm, sal_uInt16 nItemVersion) const
-{
- GetItemSet().Store( rStrm, nItemVersion );
-
- return rStrm;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index c0b11411ffe3..055049376300 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -2918,15 +2918,6 @@ SfxPoolItem* XLineAttrSetItem::Clone( SfxItemPool* pPool ) const
return new XLineAttrSetItem( *this, pPool );
}
-/// create a set item out of a stream
-SfxPoolItem* XLineAttrSetItem::Create( SvStream& rStream, sal_uInt16 /*nVersion*/) const
-{
- auto pSet2 = o3tl::make_unique<SfxItemSet>( *GetItemSet().GetPool(),
- svl::Items<XATTR_LINE_FIRST, XATTR_LINE_LAST>{});
- pSet2->Load( rStream );
- return new XLineAttrSetItem( std::move(pSet2) );
-}
-
/// fill attribute set item
XFillAttrSetItem::XFillAttrSetItem( std::unique_ptr<SfxItemSet>&& pItemSet ) :
SfxSetItem( XATTRSET_FILL, std::move(pItemSet))
@@ -2955,13 +2946,4 @@ SfxPoolItem* XFillAttrSetItem::Clone( SfxItemPool* pPool ) const
return new XFillAttrSetItem( *this, pPool );
}
-/// create a set item out of a stream
-SfxPoolItem* XFillAttrSetItem::Create( SvStream& rStream, sal_uInt16 /*nVersion*/) const
-{
- auto pSet2 = o3tl::make_unique<SfxItemSet>( *GetItemSet().GetPool(),
- svl::Items<XATTR_FILL_FIRST, XATTR_FILL_LAST>{});
- pSet2->Load( rStream );
- return new XFillAttrSetItem( std::move(pSet2) );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */