Kaydet (Commit) 3d9981af authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Christina Rossmanith

Remove dead code in libs-core

üst a149b16d
...@@ -73,7 +73,6 @@ void XMLElement::dump( Reference< xml::sax::XDocumentHandler > const & xOut ) ...@@ -73,7 +73,6 @@ void XMLElement::dump( Reference< xml::sax::XDocumentHandler > const & xOut )
xOut->startElement( _name, static_cast< xml::sax::XAttributeList * >( this ) ); xOut->startElement( _name, static_cast< xml::sax::XAttributeList * >( this ) );
// write sub elements // write sub elements
dumpSubElements( xOut ); dumpSubElements( xOut );
//
xOut->ignorableWhitespace( OUString() ); xOut->ignorableWhitespace( OUString() );
xOut->endElement( _name ); xOut->endElement( _name );
} }
......
...@@ -115,13 +115,10 @@ public: ...@@ -115,13 +115,10 @@ public:
::rtl::OUString const & propName, ::rtl::OUString const & attrName, ::rtl::OUString const & propName, ::rtl::OUString const & attrName,
bool forceAttribute = false ); bool forceAttribute = false );
//
template<typename T> template<typename T>
inline bool readProp( T * ret, ::rtl::OUString const & rPropName ); inline bool readProp( T * ret, ::rtl::OUString const & rPropName );
css::uno::Any readProp( ::rtl::OUString const & rPropName ); css::uno::Any readProp( ::rtl::OUString const & rPropName );
//
void readDefaults( bool supportPrintable = true, bool supportVisible = true ); void readDefaults( bool supportPrintable = true, bool supportVisible = true );
//
void readStringAttr( void readStringAttr(
::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName ); ::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName );
inline void readDoubleAttr( inline void readDoubleAttr(
...@@ -162,7 +159,6 @@ public: ...@@ -162,7 +159,6 @@ public:
::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName ); ::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName );
void readSelectionTypeAttr( void readSelectionTypeAttr(
::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName ); ::rtl::OUString const & rPropName, ::rtl::OUString const & rAttrName );
//
void readDataAwareAttr( void readDataAwareAttr(
::rtl::OUString const & rAttrName ); ::rtl::OUString const & rAttrName );
inline void addBoolAttr( inline void addBoolAttr(
...@@ -173,9 +169,7 @@ public: ...@@ -173,9 +169,7 @@ public:
const & xFormatProperties, const & xFormatProperties,
::rtl::OUString const & rAttrName ); ::rtl::OUString const & rAttrName );
//
void readEvents() SAL_THROW( (css::uno::Exception) ); void readEvents() SAL_THROW( (css::uno::Exception) );
//
void readDialogModel( StyleBag * all_styles ) void readDialogModel( StyleBag * all_styles )
SAL_THROW( (css::uno::Exception) ); SAL_THROW( (css::uno::Exception) );
void readBullitinBoard( StyleBag * all_styles ) void readBullitinBoard( StyleBag * all_styles )
......
...@@ -52,7 +52,6 @@ namespace css = ::com::sun::star; ...@@ -52,7 +52,6 @@ namespace css = ::com::sun::star;
namespace xmlscript namespace xmlscript
{ {
//
inline sal_Int32 toInt32( ::rtl::OUString const & rStr ) SAL_THROW( () ) inline sal_Int32 toInt32( ::rtl::OUString const & rStr ) SAL_THROW( () )
{ {
sal_Int32 nVal; sal_Int32 nVal;
......
...@@ -115,10 +115,7 @@ void ElementDescriptor::readFrameModel( StyleBag * all_styles ) ...@@ -115,10 +115,7 @@ void ElementDescriptor::readFrameModel( StyleBag * all_styles )
{ {
// collect styles // collect styles
Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 ); Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
/*
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
aStyle._set |= 0x1;
*/
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor) if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
aStyle._set |= 0x2; aStyle._set |= 0x2;
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor) if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
...@@ -1561,7 +1558,6 @@ void ElementDescriptor::readBullitinBoard( StyleBag * all_styles ) ...@@ -1561,7 +1558,6 @@ void ElementDescriptor::readBullitinBoard( StyleBag * all_styles )
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":progressmeter") ), _xDocument ); OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":progressmeter") ), _xDocument );
pElem->readProgressBarModel( all_styles ); pElem->readProgressBarModel( all_styles );
} }
//
if (pElem) if (pElem)
{ {
......
...@@ -51,7 +51,6 @@ using namespace ::com::sun::star::uno; ...@@ -51,7 +51,6 @@ using namespace ::com::sun::star::uno;
namespace xmlscript namespace xmlscript
{ {
//
inline sal_Int32 toInt32( OUString const & rStr ) SAL_THROW( () ) inline sal_Int32 toInt32( OUString const & rStr ) SAL_THROW( () )
{ {
sal_Int32 nVal; sal_Int32 nVal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment