diff options
author | Petr Vorel <petr.vorel@gmail.com> | 2012-03-15 11:40:15 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-03-15 16:57:45 +0100 |
commit | a13a9a048a5c76e874073f6738a248286b5171fa (patch) | |
tree | 960485346d01e5dead4b35e38846fc94122ee492 /oox | |
parent | c8620de6dc24f79c1d290f1b94665edfbcf5c000 (diff) |
remove unused code (oox, sd)
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/oox/helper/attributelist.hxx | 6 | ||||
-rw-r--r-- | oox/inc/oox/helper/containerhelper.hxx | 16 | ||||
-rw-r--r-- | oox/inc/oox/helper/graphichelper.hxx | 2 | ||||
-rw-r--r-- | oox/source/helper/attributelist.cxx | 10 | ||||
-rw-r--r-- | oox/source/helper/containerhelper.cxx | 18 | ||||
-rw-r--r-- | oox/source/helper/graphichelper.cxx | 5 |
6 files changed, 0 insertions, 57 deletions
diff --git a/oox/inc/oox/helper/attributelist.hxx b/oox/inc/oox/helper/attributelist.hxx index d0a060015afa..c60c6f8d58cc 100644 --- a/oox/inc/oox/helper/attributelist.hxx +++ b/oox/inc/oox/helper/attributelist.hxx @@ -66,12 +66,6 @@ public: /** Returns the 32-bit signed integer value from the passed string (hexadecimal). */ static sal_Int32 decodeIntegerHex( const ::rtl::OUString& rValue ); - - /** Returns the 32-bit unsigned integer value from the passed string (hexadecimal). */ - static sal_uInt32 decodeUnsignedHex( const ::rtl::OUString& rValue ); - - /** Returns the 64-bit signed integer value from the passed string (hexadecimal). */ - static sal_Int64 decodeHyperHex( const ::rtl::OUString& rValue ); }; // ============================================================================ diff --git a/oox/inc/oox/helper/containerhelper.hxx b/oox/inc/oox/helper/containerhelper.hxx index 5c9dc88be411..eef942986c80 100644 --- a/oox/inc/oox/helper/containerhelper.hxx +++ b/oox/inc/oox/helper/containerhelper.hxx @@ -173,22 +173,6 @@ public: static ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > createIndexContainer( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); - /** Inserts an object into an indexed container. - - @param rxIndexContainer com.sun.star.container.XIndexContainer - interface of the indexed container. - - @param nIndex Insertion index for the object. - - @param rObject The object to be inserted. - - @return True = object successfully inserted. - */ - static bool insertByIndex( - const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& rxIndexContainer, - sal_Int32 nIndex, - const ::com::sun::star::uno::Any& rObject ); - // com.sun.star.container.XNameContainer ---------------------------------- /** Creates a new name container object from scratch. */ diff --git a/oox/inc/oox/helper/graphichelper.hxx b/oox/inc/oox/helper/graphichelper.hxx index d3507fa1a519..9881200a1df1 100644 --- a/oox/inc/oox/helper/graphichelper.hxx +++ b/oox/inc/oox/helper/graphichelper.hxx @@ -93,8 +93,6 @@ public: sal_Int32 convertScreenPixelXToHmm( double fPixelX ) const; /** Converts the passed value from vertical screen pixels to 1/100 mm. */ sal_Int32 convertScreenPixelYToHmm( double fPixelY ) const; - /** Converts the passed point from screen pixels to 1/100 mm. */ - ::com::sun::star::awt::Point convertScreenPixelToHmm( const ::com::sun::star::awt::Point& rPixel ) const; /** Converts the passed size from screen pixels to 1/100 mm. */ ::com::sun::star::awt::Size convertScreenPixelToHmm( const ::com::sun::star::awt::Size& rPixel ) const; diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx index 33f4ed554437..f1d114df0609 100644 --- a/oox/source/helper/attributelist.cxx +++ b/oox/source/helper/attributelist.cxx @@ -122,16 +122,6 @@ sal_Int32 AttributeConversion::decodeIntegerHex( const OUString& rValue ) return rValue.toInt32( 16 ); } -sal_uInt32 AttributeConversion::decodeUnsignedHex( const OUString& rValue ) -{ - return getLimitedValue< sal_uInt32, sal_Int64 >( rValue.toInt64( 16 ), 0, SAL_MAX_UINT32 ); -} - -sal_Int64 AttributeConversion::decodeHyperHex( const OUString& rValue ) -{ - return rValue.toInt64( 16 ); -} - // ============================================================================ AttributeList::AttributeList( const Reference< XFastAttributeList >& rxAttribs ) : diff --git a/oox/source/helper/containerhelper.cxx b/oox/source/helper/containerhelper.cxx index 23bad220e452..a19e9b40713b 100644 --- a/oox/source/helper/containerhelper.cxx +++ b/oox/source/helper/containerhelper.cxx @@ -119,24 +119,6 @@ Reference< XIndexContainer > ContainerHelper::createIndexContainer( const Refere return xContainer; } -bool ContainerHelper::insertByIndex( - const Reference< XIndexContainer >& rxIndexContainer, - sal_Int32 nIndex, const Any& rObject ) -{ - OSL_ENSURE( rxIndexContainer.is(), "ContainerHelper::insertByIndex - missing XIndexContainer interface" ); - bool bRet = false; - try - { - rxIndexContainer->insertByIndex( nIndex, rObject ); - bRet = true; - } - catch( Exception& ) - { - } - OSL_ENSURE( bRet, "ContainerHelper::insertByIndex - cannot insert object" ); - return bRet; -} - Reference< XNameContainer > ContainerHelper::createNameContainer( const Reference< XComponentContext >& rxContext ) { Reference< XNameContainer > xContainer; diff --git a/oox/source/helper/graphichelper.cxx b/oox/source/helper/graphichelper.cxx index ddca88f19e65..66f631356be6 100644 --- a/oox/source/helper/graphichelper.cxx +++ b/oox/source/helper/graphichelper.cxx @@ -185,11 +185,6 @@ sal_Int32 GraphicHelper::convertScreenPixelYToHmm( double fPixelY ) const return lclConvertScreenPixelToHmm( fPixelY, mfPixelPerHmmY ); } -awt::Point GraphicHelper::convertScreenPixelToHmm( const awt::Point& rPixel ) const -{ - return awt::Point( convertScreenPixelXToHmm( rPixel.X ), convertScreenPixelYToHmm( rPixel.Y ) ); -} - awt::Size GraphicHelper::convertScreenPixelToHmm( const awt::Size& rPixel ) const { return awt::Size( convertScreenPixelXToHmm( rPixel.Width ), convertScreenPixelYToHmm( rPixel.Height ) ); |