[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Jul 18 19:51:47 PDT 2014
sc/source/filter/xcl97/XclExpChangeTrack.cxx | 48 ---------------------------
1 file changed, 48 deletions(-)
New commits:
commit 4aa9b041de3129f19b48e66d349f48657b73f33e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Jul 18 22:50:23 2014 -0400
Remove unused classes.
Change-Id: I28003ddd2bb0120250eb0bd562af82346c58829d
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index b24073f..83cdd57 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -1388,39 +1388,6 @@ void ExcXmlRecord::Save( XclExpStream& )
// Do nothing; ignored for BIFF output.
}
-class StartXmlElement : public ExcXmlRecord
-{
-public:
- enum Behavior {
- CLOSE_ELEMENT = 0x1,
- WRITE_NAMESPACES = 0x2,
- };
- StartXmlElement( sal_Int32 nElement, sal_Int32 eBehavior )
- : mnElement( nElement ), meBehavior( (Behavior) eBehavior ) {}
- virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
-private:
- sal_Int32 mnElement;
- Behavior meBehavior;
-};
-
-void StartXmlElement::SaveXml( XclExpXmlStream& rStrm )
-{
- sax_fastparser::FSHelperPtr pStream = rStrm.GetCurrentStream();
- pStream->write( "<" )
- ->writeId( mnElement );
- if( meBehavior & WRITE_NAMESPACES )
- {
- rStrm.WriteAttributes(
- XML_xmlns, "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
- FSNS( XML_xmlns, XML_r ), "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
- FSEND );
- }
- if( meBehavior & CLOSE_ELEMENT )
- {
- pStream->write( ">" );
- }
-}
-
class EndXmlElement : public ExcXmlRecord
{
sal_Int32 mnElement;
@@ -1435,21 +1402,6 @@ void EndXmlElement::SaveXml( XclExpXmlStream& rStrm )
pStream->write("</")->writeId(mnElement)->write(">");
}
-class EndHeaderElement : public EndXmlElement
-{
-public:
- EndHeaderElement() : EndXmlElement( XML_header ) {}
- virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
-};
-
-void EndHeaderElement::SaveXml( XclExpXmlStream& rStrm )
-{
- // Remove the `xl/revisions/revisionLogX.xml' file from the stack
- rStrm.PopStream();
-
- EndXmlElement::SaveXml( rStrm );
-}
-
XclExpChangeTrack::XclExpChangeTrack( const XclExpRoot& rRoot ) :
XclExpRoot( rRoot ),
aActionStack(),
More information about the Libreoffice-commits
mailing list