summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorBálint Dózsa <dozsabalint@gmail.com>2011-02-16 18:59:20 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-16 21:08:26 +0100
commitfcf3851494f067635dc576a2f69207184168b1e7 (patch)
treedf828eefa00a51562c55e8b877603d3d54ed0475 /xmloff/source
parentb0ead278358dd5d96726bf42293325388bef1cbb (diff)
Remove dead code
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/chart/MultiPropertySetHandler.hxx8
-rw-r--r--xmloff/source/chart/PropertyMaps.cxx1
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx19
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx41
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx4
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.cxx2
-rw-r--r--xmloff/source/chart/SchXMLTools.cxx3
-rw-r--r--xmloff/source/core/DocumentSettingsContext.cxx4
-rw-r--r--xmloff/source/core/ProgressBarHelper.cxx8
-rw-r--r--xmloff/source/core/RDFaImportHelper.cxx2
-rw-r--r--xmloff/source/core/SettingsExportHelper.cxx4
-rw-r--r--xmloff/source/core/xmlexp.cxx17
-rw-r--r--xmloff/source/core/xmlimp.cxx6
-rw-r--r--xmloff/source/core/xmltoken.cxx1
14 files changed, 2 insertions, 118 deletions
diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx
index 2ae294ff5611..c594cd6970bf 100644
--- a/xmloff/source/chart/MultiPropertySetHandler.hxx
+++ b/xmloff/source/chart/MultiPropertySetHandler.hxx
@@ -214,14 +214,6 @@ MultiPropertySetHandler::~MultiPropertySetHandler (void)
}
-/*
-template<class T> void MultiPropertySetHandler::Add (const ::rtl::OUString & sName, T& pValue)
-{
- aPropertyList[sName] = new PropertyWrapper<T> (sName, pValue);
-}
-*/
-
-
BOOL MultiPropertySetHandler::GetProperties (void)
{
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx
index 2ec8f370e569..6cb029d9b1bf 100644
--- a/xmloff/source/chart/PropertyMaps.cxx
+++ b/xmloff/source/chart/PropertyMaps.cxx
@@ -490,7 +490,6 @@ XMLChartImportPropertyMapper::XMLChartImportPropertyMapper( const UniReference<
// do not chain text properties: on import this is done by shape mapper
// to import old documents
-// ChainImportMapper( XMLTextImportHelper::CreateParaExtPropMapper());
}
XMLChartImportPropertyMapper::~XMLChartImportPropertyMapper()
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 5150e087dd34..085e24428aa7 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -280,11 +280,9 @@ uno::Sequence< sal_Int32 > lcl_getNumberSequenceFromString( const ::rtl::OUStrin
static SvXMLEnumMapEntry aXMLLegendAlignmentMap[] =
{
-// { XML_LEFT, chart::ChartLegendPosition_LEFT },
// #i35421#
{ XML_START, chart::ChartLegendPosition_LEFT },
{ XML_TOP, chart::ChartLegendPosition_TOP },
-// { XML_RIGHT, chart::ChartLegendPosition_RIGHT },
// #i35421#
{ XML_END, chart::ChartLegendPosition_RIGHT },
{ XML_BOTTOM, chart::ChartLegendPosition_BOTTOM },
@@ -547,23 +545,6 @@ void lcl_swapPointAndSeriesStylesForDonutCharts( ::std::list< DataRowPointStyle
}
nOldSeriesCount = nMaxOldSeriesIndex+1;
}
- /*
- sal_Int32 nOldSeriesCount = 0;
- {
- sal_Int32 nMaxOldSeriesIndex = 0;
- sal_Int32 nOldSeriesIndex = 0;
- for( aIt = rStyleList.begin(); aIt != aEnd; ++aIt )
- {
- DataRowPointStyle aStyle(*aIt);
- if(aStyle.meType == DataRowPointStyle::DATA_SERIES )
- {
- nMaxOldSeriesIndex = nOldSeriesIndex;
- nOldSeriesIndex++;
- }
- }
- nOldSeriesCount = nMaxOldSeriesIndex+1;
- }
- */
//initialize new series styles
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index d73fe1036ac5..425556b5413f 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -915,10 +915,6 @@ void lcl_exportNumberFormat( const OUString& rPropertyName, const Reference< bea
return aResult;
const OUString aRolePrefix( RTL_CONSTASCII_USTRINGPARAM( "error-bars-" ));
-// const OUString aXRolePrefix( aRolePrefix + OUString( RTL_CONSTASCII_USTRINGPARAM( "x-" )));
-// const OUString aYRolePrefix( aRolePrefix + OUString( RTL_CONSTASCII_USTRINGPARAM( "y-" )));
-// const OUString aPositivePostfix( RTL_CONSTASCII_USTRINGPARAM( "positive" ));
-// const OUString aNegativePostfix( RTL_CONSTASCII_USTRINGPARAM( "negative" ));
Sequence< Reference< chart2::data::XLabeledDataSequence > > aSequences(
xErrorBarDataSource->getDataSequences());
@@ -1216,7 +1212,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >&
{
DBG_WARNING( "Required property not found in ChartDocument" );
}
- } // if( xDocPropSet.is())
+ }
if ( bIncludeTable && (aNullDate.Day != 30 || aNullDate.Month != 12 || aNullDate.Year != 1899 ) )
{
@@ -1432,12 +1428,10 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >&
switch( aLegendPos )
{
case chart::ChartLegendPosition_LEFT:
-// msString = GetXMLToken(XML_LEFT);
// #i35421# change left->start (not clear why this was done)
msString = GetXMLToken(XML_START);
break;
case chart::ChartLegendPosition_RIGHT:
-// msString = GetXMLToken(XML_RIGHT);
// #i35421# change right->end (not clear why this was done)
msString = GetXMLToken(XML_END);
break;
@@ -1562,8 +1556,6 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >&
rShapeExport->collectShapeAutoStyles( xShape );
}
- // this would be the easier way if it worked:
- // mrExport.GetShapeExport()->collectShapesAutoStyles( mxAdditionalShapes );
}
}
}
@@ -3196,7 +3188,6 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
sal_Bool bJapaneseCandleSticks,
sal_Bool bExportContent )
{
-// std::vector< XMLPropertyState > aPropertyStates;
for( sal_Int32 nSeriesIdx=0; nSeriesIdx<aSeriesSeq.getLength(); ++nSeriesIdx )
{
@@ -3286,12 +3277,6 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_ATTACHED_AXIS, XML_SECONDARY_Y );
else
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_ATTACHED_AXIS, XML_PRIMARY_Y );
- // write style name
-// AddAutoStyleAttribute( aPropertyStates );
- // chart type
-// mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_CLASS,
-// mrExport.GetNamespaceMap().GetQNameByKey(
-// XML_NAMESPACE_CHART, GetXMLToken( XML_STOCK )));
SvXMLElementExport aCloseSeries( mrExport, XML_NAMESPACE_CHART, XML_SERIES, sal_True, sal_True );
// export empty data points
exportDataPoints( 0, nSeriesLength, xDiagram, bExportContent );
@@ -3300,10 +3285,8 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
else // autostyles
{
// for close series
-// CollectAutoStyle( aPropertyStates );
}
// remove property states for autostyles
-// aPropertyStates.clear();
}
}
}
@@ -3865,7 +3848,6 @@ Reference< uno::XInterface > SAL_CALL SchXMLExport_createInstance(const Referenc
{
// #110680#
// #103997# removed some flags from EXPORT_ALL
- // return (cppu::OWeakObject*)new SchXMLExport( EXPORT_ALL ^ ( EXPORT_SETTINGS | EXPORT_MASTERSTYLES | EXPORT_SCRIPTS ));
return (cppu::OWeakObject*)new SchXMLExport( rSMgr, EXPORT_ALL ^ ( EXPORT_SETTINGS | EXPORT_MASTERSTYLES | EXPORT_SCRIPTS ));
}
@@ -3908,7 +3890,6 @@ OUString SAL_CALL SchXMLExport_Styles_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLExport_Styles_createInstance(const Reference< lang::XMultiServiceFactory >& rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLExport( EXPORT_STYLES );
return (cppu::OWeakObject*)new SchXMLExport( rSMgr, EXPORT_STYLES );
}
@@ -3947,7 +3928,6 @@ OUString SAL_CALL SchXMLExport_Content_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLExport_Content_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLExport( EXPORT_AUTOSTYLES | EXPORT_CONTENT | EXPORT_FONTDECLS );
return (cppu::OWeakObject*)new SchXMLExport( rSMgr, EXPORT_AUTOSTYLES | EXPORT_CONTENT | EXPORT_FONTDECLS );
}
@@ -3971,23 +3951,6 @@ Reference< uno::XInterface > SAL_CALL SchXMLExport_Oasis_Content_createInstance(
// ------------------------------------------------------------
-// Sequence< OUString > SAL_CALL SchXMLExport_Meta_getSupportedServiceNames() throw()
-// {
-// const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLMetaExporter" ));
-// const Sequence< OUString > aSeq( &aServiceName, 1 );
-// return aSeq;
-// }
-
-// OUString SAL_CALL SchXMLExport_Meta_getImplementationName() throw()
-// {
-// return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLExport.Meta" ));
-// }
-
-// Reference< uno::XInterface > SAL_CALL SchXMLExport_Meta_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
-// {
-// return (cppu::OWeakObject*)new SchXMLExport( EXPORT_META );
-// }
-
// Oasis format
Sequence< OUString > SAL_CALL SchXMLExport_Oasis_Meta_getSupportedServiceNames() throw()
{
@@ -4018,8 +3981,6 @@ OUString SAL_CALL SchXMLExport::getImplementationName() throw( uno::RuntimeExcep
return SchXMLExport_Styles_getImplementationName();
case ( EXPORT_AUTOSTYLES | EXPORT_CONTENT | EXPORT_FONTDECLS ):
return SchXMLExport_Content_getImplementationName();
-// case EXPORT_META:
-// return SchXMLExport_Meta_getImplementationName();
// Oasis format
case ( EXPORT_ALL | EXPORT_OASIS ):
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index 4ce250e9982b..e77ce27c50d9 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -870,7 +870,6 @@ OUString SAL_CALL SchXMLImport_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLImport();
return (cppu::OWeakObject*)new SchXMLImport(rSMgr);
}
@@ -893,7 +892,6 @@ OUString SAL_CALL SchXMLImport_Styles_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLImport( IMPORT_STYLES );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_STYLES );
}
@@ -914,7 +912,6 @@ OUString SAL_CALL SchXMLImport_Content_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLImport( IMPORT_CONTENT | IMPORT_AUTOSTYLES | IMPORT_FONTDECLS );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_CONTENT | IMPORT_AUTOSTYLES | IMPORT_FONTDECLS );
}
@@ -935,7 +932,6 @@ OUString SAL_CALL SchXMLImport_Meta_getImplementationName() throw()
Reference< uno::XInterface > SAL_CALL SchXMLImport_Meta_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
- // return (cppu::OWeakObject*)new SchXMLImport( IMPORT_META );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_META );
}
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index e239916b409f..1cdf8f352256 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -733,7 +733,6 @@ void SchXMLPlotAreaContext::CorrectAxisPositions()
{
Reference< chart2::XAxis > xMainXAxis = lcl_getAxis( xCooSys, 0, 0 );
Reference< chart2::XAxis > xMainYAxis = lcl_getAxis( xCooSys, 1, 0 );
- //Reference< chart2::XAxis > xMajorZAxis = lcl_getAxis( xCooSys, 2, 0 );
Reference< chart2::XAxis > xSecondaryXAxis = lcl_getAxis( xCooSys, 0, 1 );
Reference< chart2::XAxis > xSecondaryYAxis = lcl_getAxis( xCooSys, 1, 1 );
@@ -1668,7 +1667,6 @@ void SchXMLCategoriesContext::StartElement( const uno::Reference< xml::sax::XAtt
{
uno::Reference< chart2::XChartDocument > xNewDoc( GetImport().GetModel(), uno::UNO_QUERY );
mrAddress = xAttrList->getValueByIndex( i );
- // lcl_ConvertRange( xAttrList->getValueByIndex( i ), xNewDoc );
}
}
}
diff --git a/xmloff/source/chart/SchXMLTools.cxx b/xmloff/source/chart/SchXMLTools.cxx
index 4dafd58c0d95..2ea903228832 100644
--- a/xmloff/source/chart/SchXMLTools.cxx
+++ b/xmloff/source/chart/SchXMLTools.cxx
@@ -31,9 +31,6 @@
#include "SchXMLTools.hxx"
-/*
-#include <tools/debug.hxx>
-*/
#include <rtl/ustrbuf.hxx>
#include <comphelper/InlineContainer.hxx>
// header for class SvXMLUnitConverter
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx
index c77731b2fd82..d901958a834b 100644
--- a/xmloff/source/core/DocumentSettingsContext.cxx
+++ b/xmloff/source/core/DocumentSettingsContext.cxx
@@ -115,8 +115,6 @@ uno::Reference<container::XNameContainer> XMLMyList::GetNameContainer()
uno::Reference<container::XNameContainer> xNameContainer;
// #110680#
- // uno::Reference<lang::XMultiServiceFactory> xServiceFactory = comphelper::getProcessServiceFactory();
- // DBG_ASSERT( xServiceFactory.is(), "got no service manager" );
if( mxServiceFactory.is() )
{
@@ -139,8 +137,6 @@ uno::Reference<container::XIndexContainer> XMLMyList::GetIndexContainer()
{
uno::Reference<container::XIndexContainer> xIndexContainer;
// #110680#
- // uno::Reference<lang::XMultiServiceFactory> xServiceFactory = comphelper::getProcessServiceFactory();
- // DBG_ASSERT( xServiceFactory.is(), "got no service manager" );
if( mxServiceFactory.is() )
{
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx
index 2842ea2797b2..eff5e23682d5 100644
--- a/xmloff/source/core/ProgressBarHelper.cxx
+++ b/xmloff/source/core/ProgressBarHelper.cxx
@@ -102,8 +102,6 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
nValue = nReference;
else
{
-// xStatusIndicator->end();
-// xStatusIndicator->start();
xStatusIndicator->reset();
nValue = 0;
}
@@ -121,12 +119,6 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
xmloff::token::DecRescheduleCount();
// #95181# disabled, because we want to call setValue very often to enable a good reschedule
-// double fPercent ((fNewValue * 100) / nRange);
-// if (fPercent >= (fOldPercent + fProgressStep))
-// {
-// xStatusIndicator->setValue((sal_Int32)fNewValue);
-// fOldPercent = fPercent;
-// }
}
#ifdef DBG_UTIL
else if (!bFailure)
diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx
index 224e5a80dc9b..2e4c5db72677 100644
--- a/xmloff/source/core/RDFaImportHelper.cxx
+++ b/xmloff/source/core/RDFaImportHelper.cxx
@@ -209,7 +209,6 @@ RDFaReader::ReadCURIE(::rtl::OUString const & i_rCURIE) const
{
// N.B.: empty LocalName is valid!
const ::rtl::OUString URI(Namespace + LocalName);
-// return GetImport().GetAbsoluteReference(URI);
return GetAbsoluteReference(URI);
}
else
@@ -275,7 +274,6 @@ RDFaReader::ReadURIOrSafeCURIE(::rtl::OUString const & i_rURIOrSafeCURIE) const
}
else
{
-// return GetImport().GetAbsoluteReference(i_rURIOrSafeCURIE);
return GetAbsoluteReference(i_rURIOrSafeCURIE);
}
}
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx
index 14c564c962ae..39ca68d70dfe 100644
--- a/xmloff/source/core/SettingsExportHelper.cxx
+++ b/xmloff/source/core/SettingsExportHelper.cxx
@@ -303,7 +303,6 @@ void XMLSettingsExportHelper::exportSymbolDescriptors(
const rtl::OUString rName) const
{
// #110680#
- // uno::Reference< lang::XMultiServiceFactory > xServiceFactory( comphelper::getProcessServiceFactory() );
uno::Reference< lang::XMultiServiceFactory > xServiceFactory( m_rContext.GetServiceFactory() );
DBG_ASSERT( xServiceFactory.is(), "XMLSettingsExportHelper::exportSymbolDescriptors: got no service manager" );
@@ -423,7 +422,7 @@ void XMLSettingsExportHelper::exportIndexAccess(
DBG_ASSERT(rName.getLength(), "no name");
DBG_ASSERT(aIndexed->getElementType().equals(getCppuType( (uno::Sequence<beans::PropertyValue> *)0 ) ),
"wrong IndexAccess" );
- rtl::OUString sEmpty;// ( RTLCONSTASCII_USTRINGPARAM( "View" ) );
+ rtl::OUString sEmpty;
if(aIndexed->hasElements())
{
m_rContext.AddAttribute( XML_NAME, rName );
@@ -453,7 +452,6 @@ void XMLSettingsExportHelper::exportForbiddenCharacters(
return;
// #110680#
- // uno::Reference< lang::XMultiServiceFactory > xServiceFactory( comphelper::getProcessServiceFactory() );
uno::Reference< lang::XMultiServiceFactory > xServiceFactory( m_rContext.GetServiceFactory() );
DBG_ASSERT( xServiceFactory.is(), "XMLSettingsExportHelper::exportForbiddenCharacters: got no service manager" );
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 0b7c9f1c257d..492849b816c8 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1163,7 +1163,6 @@ void SvXMLExport::ImplExportStyles( sal_Bool )
{
CheckAttrList();
-// AddAttribute( XML_NAMESPACE_NONE, XML_ID, XML_STYLES_ID );
{
// <style:styles>
SvXMLElementExport aElem( *this, XML_NAMESPACE_OFFICE, XML_STYLES,
@@ -1207,7 +1206,6 @@ void SvXMLExport::ImplExportAutoStyles( sal_Bool )
mxAutoStylePool->RegisterNames( aStyleFamilies, aStyleNames );
}
-// AddAttributeASCII( XML_NAMESPACE_NONE, XML_ID, XML_AUTO_STYLES_ID );
{
// <style:automatic-styles>
SvXMLElementExport aElem( *this, XML_NAMESPACE_OFFICE,
@@ -1448,20 +1446,6 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass )
}
}
-// if( (getExportFlags() & EXPORT_NODOCTYPE) == 0 &&
-// xExtHandler.is() )
-// {
-// OUStringBuffer aDocType(
-// GetXMLToken(XML_XML_DOCTYPE_PREFIX).getLength() +
-// GetXMLToken(XML_XML_DOCTYPE_SUFFIX).getLength() + 30 );
-//
-// aDocType.append( GetXMLToken(XML_XML_DOCTYPE_PREFIX) );
-// aDocType.append( GetNamespaceMap().GetQNameByKey(
-// XML_NAMESPACE_OFFICE, GetXMLToken(eRootService) ) );
-// aDocType.append( GetXMLToken(XML_XML_DOCTYPE_SUFFIX) );
-// xExtHandler->unknown( aDocType.makeStringAndClear() );
-// }
-
SvXMLElementExport aElem( *this, XML_NAMESPACE_OFFICE, eRootService, sal_True, sal_True );
// meta information
@@ -2505,7 +2489,6 @@ SvXMLExport::AddAttributeXmlId(uno::Reference<uno::XInterface> const & i_xIfc)
const uno::Reference<rdf::XMetadatable> xMeta(i_xIfc,
uno::UNO_QUERY);
//FIXME not yet...
-// OSL_ENSURE(xMeta.is(), "xml:id: not XMetadatable");
if ( xMeta.is() )
{
const beans::StringPair mdref( xMeta->getMetadataReference() );
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 23f7debf1568..57c2e91a0d46 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -351,7 +351,6 @@ SvXMLImport::SvXMLImport(
mpNamespaceMap( new SvXMLNamespaceMap ),
// #110680#
- // pUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM ) ),
mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM, xServiceFactory ) ),
mpContexts( new SvXMLImportContexts_Impl ),
@@ -381,7 +380,6 @@ SvXMLImport::SvXMLImport(
mpImpl( new SvXMLImport_Impl() ),
mpNamespaceMap( new SvXMLNamespaceMap ),
// #110680#
- // pUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM ) ),
mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM, xServiceFactory ) ),
mpContexts( new SvXMLImportContexts_Impl ),
mpNumImport( NULL ),
@@ -412,7 +410,6 @@ SvXMLImport::SvXMLImport(
mpImpl( new SvXMLImport_Impl() ),
mpNamespaceMap( new SvXMLNamespaceMap ),
// #110680#
- // pUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM ) ),
mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM, xServiceFactory ) ),
mpContexts( new SvXMLImportContexts_Impl ),
mpNumImport( NULL ),
@@ -450,8 +447,6 @@ SvXMLImport::~SvXMLImport() throw ()
delete mpContexts;
}
- // delete pImageMapImportHelper;
-
// #i9518# the import component might not be deleted until after the document has been closed,
// so the stuff that accesses the document has been moved to endDocument.
@@ -1969,7 +1964,6 @@ void SvXMLImport::SetXmlId(uno::Reference<uno::XInterface> const & i_xIfc,
const uno::Reference<rdf::XMetadatable> xMeta(i_xIfc,
uno::UNO_QUERY);
//FIXME: not yet
-// OSL_ENSURE(xMeta.is(), "xml:id: not XMetadatable");
if (xMeta.is()) {
const beans::StringPair mdref( GetStreamName(), i_rXmlId );
try {
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index d4ae2252a9c7..7b56abc97855 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -78,7 +78,6 @@ namespace xmloff { namespace token {
TOKEN( " PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">", XML_XML_DOCTYPE_SUFFIX ),
// namespace prefixes and names
-// TOKEN( "xml", XML_NP_XML ),
TOKEN( "http://www.w3.org/XML/1998/namespace", XML_N_XML ),
TOKEN( "office", XML_NP_OFFICE ),
TOKEN( "urn:oasis:names:tc:opendocument:xmlns:office:1.0", XML_N_OFFICE ),