summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-13 22:49:58 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-13 22:49:58 +0100
commitf3c99d5e34df5304bca88f6fcc42476ee6645bc2 (patch)
tree1edc6081b2cd1c25dfca3e3730c84458329e3e6b /xmloff/source/meta
parentab7324559877ca1fd18178e1a41f821d0dfe4be3 (diff)
Remove some dead code
Diffstat (limited to 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/xmlversion.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index ef1d86774a0e..cd23f7b0e200 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -55,7 +55,6 @@ using ::rtl::OUString;
sal_Char XMLN_VERSIONSLIST[] = "VersionList.xml";
// ------------------------------------------------------------------------
-
// #110897#
XMLVersionListExport::XMLVersionListExport(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
@@ -116,8 +115,6 @@ sal_uInt32 XMLVersionListExport::exportDoc( enum ::xmloff::token::XMLTokenEnum )
}
// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-
// #110897#
XMLVersionListImport::XMLVersionListImport(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
@@ -156,8 +153,6 @@ SvXMLImportContext *XMLVersionListImport::CreateContext(
// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-
XMLVersionListContext::XMLVersionListContext( XMLVersionListImport& rImport,
sal_uInt16 nPrefix,
const OUString& rLocalName,
@@ -192,8 +187,6 @@ SvXMLImportContext *XMLVersionListContext::CreateChildContext( sal_uInt16 nPrefi
}
// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-
XMLVersionContext::XMLVersionContext( XMLVersionListImport& rImport,
sal_uInt16 nPref,
const OUString& rLocalName,
@@ -253,7 +246,6 @@ XMLVersionContext::~XMLVersionContext( void )
{}
// ------------------------------------------------------------------------
-// static
sal_Bool XMLVersionContext::ParseISODateTimeString(
const rtl::OUString& rString,
util::DateTime& rDateTime )
@@ -355,8 +347,6 @@ sal_Bool XMLVersionContext::ParseISODateTimeString(
// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-
void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XStorage >& xRoot, const uno::Sequence< util::RevisionTag >& rVersions )
throw (::com::sun::star::io::IOException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
@@ -376,14 +366,6 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt
// and delete it
OUString sVerName( RTL_CONSTASCII_USTRINGPARAM( XMLN_VERSIONSLIST ) );
- // is this really needed, we set the size to zero before doing
- // anything with this stream?
-/* if ( xRoot->IsContained( sVerName ) )
- {
- xRoot->Remove( sVerName );
- xRoot->Commit();
- }
-*/
try {
// open (create) the sub storage with the version info
uno::Reference< io::XStream > xVerStream = xRoot->openStreamElement(
@@ -392,11 +374,6 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt
if ( !xVerStream.is() )
throw uno::RuntimeException();
-//REMOVE // SetSize should not be neccessary because OpenStream( WRITE|TRUNC ) should already
-//REMOVE // have set the size to zero
-//REMOVE // xVerStream->SetSize ( 0L );
-//REMOVE xVerStream->SetBufferSize( 16*1024 );
-
Reference< io::XOutputStream > xOut = xVerStream->getOutputStream();
if ( !xOut.is() )
throw uno::RuntimeException(); // the stream was successfuly opened for writing already
@@ -411,9 +388,7 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt
aExp.exportDoc( ::xmloff::token::XML_VERSION );
-//REMOVE xVerStream->Commit();
xVerStream = uno::Reference< io::XStream >(); // use refcounting for now to dispose
- // xRoot->Commit();
}
catch( uno::Exception& )
{
@@ -457,9 +432,6 @@ uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( con
if ( !xDocStream.is() )
throw uno::RuntimeException();
-//REMOVE xDocStream->Seek( 0L );
-//REMOVE xDocStream->SetBufferSize( 16*1024 );
-
aParserInput.aInputStream = xDocStream->getInputStream();
OSL_ENSURE( aParserInput.aInputStream.is(),
"The stream was successfuly opened for reading, the input part must be accessible!\n" );