diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-10-08 18:15:59 -0300 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-08 21:27:01 +0000 |
commit | d540c322cce4f00418466cf7715ecc2c2f1e95c5 (patch) | |
tree | 3cdf70acc7224cb760049d4481dafe7e57930df5 /xmloff | |
parent | c08f23cec28e3e1532993c50d602e127d65491c0 (diff) |
Remove more useless code inside "#if 0" blocks
Change-Id: Ifb9f9d2211608b848a5de66e1d19c4815a755907
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/840
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/SettingsExportHelper.cxx | 11 | ||||
-rw-r--r-- | xmloff/source/table/XMLTableImport.cxx | 10 |
2 files changed, 0 insertions, 21 deletions
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx index 7d61bdd932a7..1dadeadffcff 100644 --- a/xmloff/source/core/SettingsExportHelper.cxx +++ b/xmloff/source/core/SettingsExportHelper.cxx @@ -205,22 +205,11 @@ void XMLSettingsExportHelper::exportBool(const sal_Bool bValue, const rtl::OUStr void XMLSettingsExportHelper::exportByte(const sal_Int8 nValue, const rtl::OUString& rName) const { -#if 0 - DBG_ASSERT(!rName.isEmpty(), "no name"); - m_rContext.AddAttribute( XML_NAME, rName ); - m_rContext.AddAttribute( XML_TYPE, XML_BYTE ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); - rtl::OUStringBuffer sBuffer; - ::sax::Converter::convertNumber(sBuffer, sal_Int32(nValue)); - m_rContext.Characters( sBuffer.makeStringAndClear() ); - m_rContext.EndElement( sal_False ); -#else (void) nValue; (void) rName; OSL_ENSURE(false, "XMLSettingsExportHelper::exportByte(): #i114162#:\n" "config-items of type \"byte\" are not valid ODF, " "so storing them is disabled!\n" "Use a different type instead (e.g. \"short\")."); -#endif } void XMLSettingsExportHelper::exportShort(const sal_Int16 nValue, const rtl::OUString& rName) const { diff --git a/xmloff/source/table/XMLTableImport.cxx b/xmloff/source/table/XMLTableImport.cxx index e564264208b0..75ff917cf6de 100644 --- a/xmloff/source/table/XMLTableImport.cxx +++ b/xmloff/source/table/XMLTableImport.cxx @@ -472,16 +472,6 @@ SvXMLImportContext * XMLTableImportContext::ImportRow( sal_uInt16 nPrefix, const { msDefaultCellStyleName = sValue; } -#if 0 - else if( IsXMLToken( aLocalName, XML_VISIBILITY ) ) - { - bVisibility = IsXMLToken( sValue, XML_VISIBLE ); - } - else if( IsXMLToken( aLocalName, XML_NUMBER_ROWS_REPEATED ) ) - { - nRepeated = sValue.toInt32(); - } -#endif } else if ( (XML_NAMESPACE_XML == nPrefix2) && IsXMLToken(aLocalName, XML_ID) ) |