summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Dhall <varun.dhall@studentpartner.com>2017-08-07 02:50:35 +0530
committerMichael Stahl <mstahl@redhat.com>2017-08-07 17:20:02 +0200
commitd10a61fe36760336842cbfa7f8f77e1fb9a475a5 (patch)
tree54e0850035b425de7e0aea5aec84e5337da5b01a
parent544a978132dd8f9d44756f62f160a0883193d54a (diff)
Removing unused SfxItemPool serialisation from sfx2
Change-Id: Ibb14fcd656f401cb9d2ad57ab63f6cfecf49807d Reviewed-on: https://gerrit.libreoffice.org/40814 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--include/sfx2/evntconf.hxx2
-rw-r--r--include/sfx2/zoomitem.hxx2
-rw-r--r--sfx2/source/config/evntconf.cxx12
-rw-r--r--sfx2/source/doc/zoomitem.cxx21
4 files changed, 0 insertions, 37 deletions
diff --git a/include/sfx2/evntconf.hxx b/include/sfx2/evntconf.hxx
index ec6a0604f569..8a4d004c075d 100644
--- a/include/sfx2/evntconf.hxx
+++ b/include/sfx2/evntconf.hxx
@@ -81,8 +81,6 @@ public:
OUString &rText,
const IntlWrapper& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const override;
virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const override;
const SfxEventNamesList& GetEvents() const { return aEventsList;}
diff --git a/include/sfx2/zoomitem.hxx b/include/sfx2/zoomitem.hxx
index b846079a3dfd..6329c3157277 100644
--- a/include/sfx2/zoomitem.hxx
+++ b/include/sfx2/zoomitem.hxx
@@ -72,8 +72,6 @@ public:
void SetType( SvxZoomType eNewType ) { eType = eNewType; }
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
- virtual SfxPoolItem* Create( SvStream& rStrm, sal_uInt16 nVersion ) const override;
- virtual SvStream& Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx
index 77a0a823b882..35d42f08ef2a 100644
--- a/sfx2/source/config/evntconf.cxx
+++ b/sfx2/source/config/evntconf.cxx
@@ -108,18 +108,6 @@ SfxPoolItem* SfxEventNamesItem::Clone( SfxItemPool *) const
return new SfxEventNamesItem(*this);
}
-SfxPoolItem* SfxEventNamesItem::Create(SvStream &, sal_uInt16) const
-{
- OSL_FAIL("not streamable!");
- return new SfxEventNamesItem(Which());
-}
-
-SvStream& SfxEventNamesItem::Store(SvStream &rStream, sal_uInt16 ) const
-{
- OSL_FAIL("not streamable!");
- return rStream;
-}
-
sal_uInt16 SfxEventNamesItem::GetVersion( sal_uInt16 ) const
{
OSL_FAIL("not streamable!");
diff --git a/sfx2/source/doc/zoomitem.cxx b/sfx2/source/doc/zoomitem.cxx
index 117d1a7c4635..e528175a3187 100644
--- a/sfx2/source/doc/zoomitem.cxx
+++ b/sfx2/source/doc/zoomitem.cxx
@@ -66,27 +66,6 @@ SfxPoolItem* SvxZoomItem::Clone( SfxItemPool * /*pPool*/ ) const
}
-SfxPoolItem* SvxZoomItem::Create( SvStream& rStrm, sal_uInt16 /*nVersion*/ ) const
-{
- sal_uInt16 nValue;
- sal_uInt16 nValSet;
- sal_Int8 nType;
- rStrm.ReadUInt16( nValue ).ReadUInt16( nValSet ).ReadSChar( nType );
- SvxZoomItem* pNew = new SvxZoomItem( (SvxZoomType)nType, nValue, Which() );
- pNew->SetValueSet( static_cast<SvxZoomEnableFlags>(nValSet) );
- return pNew;
-}
-
-
-SvStream& SvxZoomItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const
-{
- rStrm.WriteUInt16( GetValue() )
- .WriteUInt16( static_cast<sal_uInt16>(nValueSet) )
- .WriteSChar( static_cast<int>(eType) );
- return rStrm;
-}
-
-
bool SvxZoomItem::operator==( const SfxPoolItem& rAttr ) const
{
assert(SfxPoolItem::operator==(rAttr));