diff options
23 files changed, 0 insertions, 492 deletions
diff --git a/canvas/inc/canvas/verifyinput.hxx b/canvas/inc/canvas/verifyinput.hxx index 8c4c11f32494..60b168e7ff58 100644 --- a/canvas/inc/canvas/verifyinput.hxx +++ b/canvas/inc/canvas/verifyinput.hxx @@ -61,7 +61,6 @@ namespace com { namespace sun { namespace star { namespace rendering struct Texture; struct ViewState; struct IntegerBitmapLayout; - struct FloatingPointBitmapLayout; struct FontRequest; struct FontInfo; class XCanvas; @@ -149,29 +148,6 @@ namespace canvas ::com::sun::star::uno::XInterface >& xIf, ::sal_Int16 nArgPos ); - /** Verify that the given size contains valid floating point - values. - - @param rSize - Size to check - - @param xIf - The interface that should be reported as the one - generating the exception. - - @param nArgPos - Argument position on the call site (i.e. the position of - the argument, checked here, on the UNO interface - method. Counting starts at 0). - - @throws an lang::IllegalArgumentException, if anything is wrong - */ - CANVASTOOLS_DLLPUBLIC void verifyInput( const ::com::sun::star::geometry::RealSize2D& rSize, - const char* pStr, - const ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XInterface >& xIf, - ::sal_Int16 nArgPos ); - /** Verify that the given bezier segment contains valid floating point values. @@ -356,28 +332,6 @@ namespace canvas ::com::sun::star::uno::XInterface >& xIf, ::sal_Int16 nArgPos ); - /** Basic check for bitmap layout validity. - - @param bitmapLayout - Bitmap layout to check - - @param xIf - The interface that should be reported as the one - generating the exception. - - @param nArgPos - Argument position on the call site (i.e. the position of - the argument, checked here, on the UNO interface - method. Counting starts at 0). - - @throws an lang::IllegalArgumentException, if anything is wrong - */ - CANVASTOOLS_DLLPUBLIC void verifyInput( const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout, - const char* pStr, - const ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XInterface >& xIf, - ::sal_Int16 nArgPos ); - /** Basic check for font info validity. @param fontInfo diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx index f7929a410949..32ac8bbd3447 100644 --- a/canvas/source/tools/verifyinput.cxx +++ b/canvas/source/tools/verifyinput.cxx @@ -101,40 +101,6 @@ namespace canvas #endif } - void verifyInput( const geometry::RealSize2D& rSize, - const char* pStr, - const uno::Reference< uno::XInterface >& xIf, - ::sal_Int16 nArgPos ) - { - (void)pStr; (void)xIf; (void)nArgPos; - -#if OSL_DEBUG_LEVEL > 0 - if( !::rtl::math::isFinite( rSize.Width ) ) - { - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): size.Width value contains infinite or NAN" )), - xIf, - nArgPos ); - } - - if( !::rtl::math::isFinite( rSize.Height ) ) - { - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): size.Height value contains infinite or NAN" )), - xIf, - nArgPos ); - } -#else - if( !::rtl::math::isFinite( rSize.Width ) || - !::rtl::math::isFinite( rSize.Height ) ) - { - throw lang::IllegalArgumentException(); - } -#endif - } - void verifyInput( const geometry::RealBezierSegment2D& rSegment, const char* pStr, const uno::Reference< uno::XInterface >& xIf, @@ -667,98 +633,6 @@ namespace canvas } } - void verifyInput( const rendering::FloatingPointBitmapLayout& bitmapLayout, - const char* pStr, - const uno::Reference< uno::XInterface >& xIf, - ::sal_Int16 nArgPos ) - { - (void)pStr; (void)xIf; (void)nArgPos; - - if( bitmapLayout.ScanLines < 0 ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLines is negative" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - - if( bitmapLayout.ScanLineBytes < 0 ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLineBytes is negative" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - - if( !bitmapLayout.ColorSpace.is() ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ColorSpace is invalid" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - - if( bitmapLayout.NumComponents < 0 ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's NumComponents is negative" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - - if( bitmapLayout.Endianness < util::Endianness::LITTLE || - bitmapLayout.Endianness > util::Endianness::BIG ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's Endianness value is out of range (" )) + - ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Endianness)) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - - if( bitmapLayout.Format < rendering::FloatingPointBitmapFormat::HALFFLOAT || - bitmapLayout.Format > rendering::FloatingPointBitmapFormat::DOUBLE ) - { -#if OSL_DEBUG_LEVEL > 0 - throw lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii(pStr) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's Format value is out of range (" )) + - ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Format)) + - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )), - xIf, - nArgPos ); -#else - throw lang::IllegalArgumentException(); -#endif - } - } - void verifyInput( const rendering::FontInfo& /*fontInfo*/, const char* /*pStr*/, const uno::Reference< uno::XInterface >& /*xIf*/, diff --git a/comphelper/inc/comphelper/accessibleeventnotifier.hxx b/comphelper/inc/comphelper/accessibleeventnotifier.hxx index c80b8ffccf14..385866a85ef2 100644 --- a/comphelper/inc/comphelper/accessibleeventnotifier.hxx +++ b/comphelper/inc/comphelper/accessibleeventnotifier.hxx @@ -129,11 +129,6 @@ namespace comphelper const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& _rxListener ) SAL_THROW( ( ) ); - /** retrieves the set of listeners registered for a given client - */ - static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > - getEventListeners( const TClientId _nClient ) SAL_THROW( ( ) ); - /** adds an event, which is to be braodcasted, to the queue @param _nClient diff --git a/comphelper/inc/comphelper/attributelist.hxx b/comphelper/inc/comphelper/attributelist.hxx index ed5e3972dbf7..50ad1aa44e1a 100644 --- a/comphelper/inc/comphelper/attributelist.hxx +++ b/comphelper/inc/comphelper/attributelist.hxx @@ -51,8 +51,6 @@ public: // methods that are not contained in any interface void AddAttribute( const ::rtl::OUString &sName , const ::rtl::OUString &sType , const ::rtl::OUString &sValue ); - void Clear(); - void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & ); // ::com::sun::star::xml::sax::XAttributeList virtual sal_Int16 SAL_CALL getLength(void) diff --git a/comphelper/inc/comphelper/containermultiplexer.hxx b/comphelper/inc/comphelper/containermultiplexer.hxx index 68990ec694f6..56124d233e21 100644 --- a/comphelper/inc/comphelper/containermultiplexer.hxx +++ b/comphelper/inc/comphelper/containermultiplexer.hxx @@ -97,8 +97,6 @@ namespace comphelper virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); // locking the multiplexer - void lock(); - void unlock(); sal_Int32 locked() const { return m_nLockCount; } /// dispose the object. No multiplexing anymore diff --git a/comphelper/inc/comphelper/interaction.hxx b/comphelper/inc/comphelper/interaction.hxx index a8f0df51b0bd..e55ae4028fe2 100644 --- a/comphelper/inc/comphelper/interaction.hxx +++ b/comphelper/inc/comphelper/interaction.hxx @@ -155,8 +155,6 @@ namespace comphelper /// add a new continuation void addContinuation(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >& _rxContinuation); - /// clear all continuations - void clearContinuations(); // XInteractionRequest virtual ::com::sun::star::uno::Any SAL_CALL getRequest( ) throw(::com::sun::star::uno::RuntimeException); diff --git a/comphelper/inc/comphelper/logging.hxx b/comphelper/inc/comphelper/logging.hxx index e332f0541594..5ad80ece3a79 100644 --- a/comphelper/inc/comphelper/logging.hxx +++ b/comphelper/inc/comphelper/logging.hxx @@ -136,39 +136,9 @@ namespace comphelper ~EventLogger(); public: - /** returns the name of the logger - */ - const ::rtl::OUString& getName() const; - - /// returns the current log level threshold of the logger - sal_Int32 getLogLevel() const; - - /// sets a new log level threshold of the logger - void setLogLevel( const sal_Int32 _nLogLevel ) const; - /// determines whether an event with the given level would be logged bool isLoggable( const sal_Int32 _nLogLevel ) const; - /** adds the given log handler to the logger's set of handlers. - - Note that normally, you would not use this method: The logger implementations - initialize themselves from the configuration, where usually, a default log handler - is specified. In this case, the logger will create and use this handler. - - @return - <TRUE/> if and only if the addition was successful (as far as this can be detected - from outside the <code>XLogger</code>'s implementation. - */ - bool addLogHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::logging::XLogHandler >& _rxLogHandler ); - - /** removes the given log handler from the logger's set of handlers. - - @return - <TRUE/> if and only if the addition was successful (as far as this can be detected - from outside the <code>XLogger</code>'s implementation. - */ - bool removeLogHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::logging::XLogHandler >& _rxLogHandler ); - //---------------------------------------------------------------- //- XLogger::log equivalents/wrappers //- string messages @@ -572,23 +542,6 @@ namespace comphelper /** creates a resource based event logger @param _rxContext the component context for creating new components - @param _rResourceBundleBaseName - the base name of the resource bundle to use. Will be used - in conjunction with XResourceBundleLoader::loadResource. - @param _rLoggerName - the name of the logger to work with. If empty, the office-wide - default logger will be used. - - */ - ResourceBasedEventLogger( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, - const ::rtl::OUString& _rResourceBundleBaseName, - const ::rtl::OUString& _rLoggerName = ::rtl::OUString() - ); - - /** creates a resource based event logger - @param _rxContext - the component context for creating new components @param _pResourceBundleBaseName the ASCII base name of the resource bundle to use. Will be used in conjunction with XResourceBundleLoader::loadResource. diff --git a/comphelper/inc/comphelper/officeresourcebundle.hxx b/comphelper/inc/comphelper/officeresourcebundle.hxx index 345790e733f2..4946feeb6157 100644 --- a/comphelper/inc/comphelper/officeresourcebundle.hxx +++ b/comphelper/inc/comphelper/officeresourcebundle.hxx @@ -55,19 +55,6 @@ namespace comphelper ::std::auto_ptr< ResourceBundle_Impl > m_pImpl; public: - /** constructs a resource bundle - @param _context - the component context to operate in - @param _bundleBaseName - the base name of the resource file which should be accessed (*without* the SUPD!) - @raises ::com::sun::star::lang::NullPointerException - if the given component context is <NULL/> - */ - OfficeResourceBundle( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _context, - const ::rtl::OUString& _bundleBaseName - ); - /** constructs a resource bundle with the resource bundle given as 8-bit ASCII name This is a convenience constructor only, it does nothing different than the constructor diff --git a/comphelper/inc/comphelper/propertysethelper.hxx b/comphelper/inc/comphelper/propertysethelper.hxx index ea6204d6795f..e22cb8d9b9ab 100644 --- a/comphelper/inc/comphelper/propertysethelper.hxx +++ b/comphelper/inc/comphelper/propertysethelper.hxx @@ -62,11 +62,7 @@ protected: virtual void _setPropertyToDefault( const comphelper::PropertyMapEntry* pEntry ) throw(::com::sun::star::beans::UnknownPropertyException ); virtual ::com::sun::star::uno::Any _getPropertyDefault( const comphelper::PropertyMapEntry* pEntry ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException ); - // allow setting of properties after construction - void setInfo( comphelper::PropertySetInfo* pInfo ) throw(); - public: - PropertySetHelper( ); PropertySetHelper( comphelper::PropertySetInfo* pInfo ) throw(); PropertySetHelper( comphelper::PropertySetInfo* pInfo, __sal_NoAcquire ) throw(); virtual ~PropertySetHelper() throw(); diff --git a/comphelper/inc/comphelper/propertysetinfo.hxx b/comphelper/inc/comphelper/propertysetinfo.hxx index 80a200a79b3a..df031a40d253 100644 --- a/comphelper/inc/comphelper/propertysetinfo.hxx +++ b/comphelper/inc/comphelper/propertysetinfo.hxx @@ -79,15 +79,6 @@ public: */ void add( PropertyMapEntry* pMap ) throw(); - /** adds an array of PropertyMapEntry to this instance - - <p>At most the number of entries given will be added, if no terminating entry (<code>mpName == <NULL/></code>) is encountered.</p> - - <p>If <arg>nCount</arg> is less than 0, it is ignored and all entries (up to, but not including, the terminating - one) are added.</p> - */ - void add( PropertyMapEntry* pMap, sal_Int32 nCount ) throw(); - /** removes an already added PropertyMapEntry which string in mpName equals to aName */ void remove( const rtl::OUString& aName ) throw(); diff --git a/comphelper/inc/comphelper/serviceinfohelper.hxx b/comphelper/inc/comphelper/serviceinfohelper.hxx index 29ffe3bd9907..e742c938cb4e 100644 --- a/comphelper/inc/comphelper/serviceinfohelper.hxx +++ b/comphelper/inc/comphelper/serviceinfohelper.hxx @@ -49,8 +49,6 @@ public: virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // helper - static ::com::sun::star::uno::Sequence< ::rtl::OUString > concatSequences( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq1, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq2 ) throw(); static void addToSequence( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq, sal_uInt16 nServices, /* sal_Char* */... ) throw(); static sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& SupportedServices ) throw(); }; diff --git a/comphelper/inc/comphelper/streamsection.hxx b/comphelper/inc/comphelper/streamsection.hxx index fb1758135e9e..3a39d9e315a3 100644 --- a/comphelper/inc/comphelper/streamsection.hxx +++ b/comphelper/inc/comphelper/streamsection.hxx @@ -78,10 +78,6 @@ public: If constructed for reading, any remaining bytes 'til the end of the section will be skipped. */ ~OStreamSection(); - /** - return the number of bytes which are still available - */ - sal_Int32 available(); }; } // namespace comphelper diff --git a/comphelper/source/container/containermultiplexer.cxx b/comphelper/source/container/containermultiplexer.cxx index d5a957aaf69e..b4d5723af40e 100644 --- a/comphelper/source/container/containermultiplexer.cxx +++ b/comphelper/source/container/containermultiplexer.cxx @@ -127,18 +127,6 @@ namespace comphelper } //------------------------------------------------------------------ - void OContainerListenerAdapter::lock() - { - ++m_nLockCount; - } - - //------------------------------------------------------------------ - void OContainerListenerAdapter::unlock() - { - --m_nLockCount; - } - - //------------------------------------------------------------------ void OContainerListenerAdapter::dispose() { if (m_xContainer.is()) diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx index cae07bc567f6..636d356a81c9 100644 --- a/comphelper/source/misc/accessibleeventnotifier.cxx +++ b/comphelper/source/misc/accessibleeventnotifier.cxx @@ -202,20 +202,6 @@ namespace comphelper } //--------------------------------------------------------------------- - Sequence< Reference< XInterface > > AccessibleEventNotifier::getEventListeners( const TClientId _nClient ) SAL_THROW( ( ) ) - { - Sequence< Reference< XInterface > > aListeners; - - ::osl::MutexGuard aGuard( lclMutex::get() ); - - ClientMap::iterator aClientPos; - if ( implLookupClient( _nClient, aClientPos ) ) - aListeners = aClientPos->second->getElements(); - - return aListeners; - } - - //--------------------------------------------------------------------- void AccessibleEventNotifier::addEvent( const TClientId _nClient, const AccessibleEventObject& _rEvent ) SAL_THROW( ( ) ) { Sequence< Reference< XInterface > > aListeners; diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx index cce5e6a9337f..fd8bce046d50 100644 --- a/comphelper/source/misc/interaction.cxx +++ b/comphelper/source/misc/interaction.cxx @@ -74,12 +74,6 @@ namespace comphelper } //------------------------------------------------------------------------- - void OInteractionRequest::clearContinuations() - { - m_aContinuations.realloc(0); - } - - //------------------------------------------------------------------------- Any SAL_CALL OInteractionRequest::getRequest( ) throw(RuntimeException) { return m_aRequest; diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index 1d95b154aa51..98a497cc7498 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -127,44 +127,6 @@ namespace comphelper } //-------------------------------------------------------------------- - const ::rtl::OUString& EventLogger::getName() const - { - return m_pImpl->getName(); - } - - //-------------------------------------------------------------------- - sal_Int32 EventLogger::getLogLevel() const - { - try - { - if ( m_pImpl->isValid() ) - return m_pImpl->getLogger()->getLevel(); - } - catch( const Exception& e ) - { - (void)e; - OSL_FAIL( "EventLogger::getLogLevel: caught an exception!" ); - } - - return LogLevel::OFF; - } - - //-------------------------------------------------------------------- - void EventLogger::setLogLevel( const sal_Int32 _nLogLevel ) const - { - try - { - if ( m_pImpl->isValid() ) - m_pImpl->getLogger()->setLevel( _nLogLevel ); - } - catch( const Exception& e ) - { - (void)e; - OSL_FAIL( "EventLogger::setLogLevel: caught an exception!" ); - } - } - - //-------------------------------------------------------------------- bool EventLogger::isLoggable( const sal_Int32 _nLogLevel ) const { if ( !m_pImpl->isValid() ) @@ -184,44 +146,6 @@ namespace comphelper } //-------------------------------------------------------------------- - bool EventLogger::addLogHandler( const Reference< XLogHandler >& _rxLogHandler ) - { - try - { - if ( m_pImpl->isValid() ) - { - m_pImpl->getLogger()->addLogHandler( _rxLogHandler ); - return true; - } - } - catch( const Exception& e ) - { - (void)e; - OSL_FAIL( "EventLogger::addLogHandler: caught an exception!" ); - } - return false; - } - - //-------------------------------------------------------------------- - bool EventLogger::removeLogHandler( const Reference< XLogHandler >& _rxLogHandler ) - { - try - { - if ( m_pImpl->isValid() ) - { - m_pImpl->getLogger()->removeLogHandler( _rxLogHandler ); - return true; - } - } - catch( const Exception& e ) - { - (void)e; - OSL_FAIL( "EventLogger::removeLogHandler: caught an exception!" ); - } - return false; - } - - //-------------------------------------------------------------------- namespace { void lcl_replaceParameter( ::rtl::OUString& _inout_Message, const ::rtl::OUString& _rPlaceHolder, const ::rtl::OUString& _rReplacement ) @@ -363,15 +287,6 @@ namespace comphelper //= ResourceBasedEventLogger //==================================================================== //-------------------------------------------------------------------- - ResourceBasedEventLogger::ResourceBasedEventLogger( const Reference< XComponentContext >& _rxContext, const ::rtl::OUString& _rResourceBundleBaseName, - const ::rtl::OUString& _rLoggerName ) - :EventLogger( _rxContext, _rLoggerName ) - ,m_pData( new ResourceBasedEventLogger_Data ) - { - m_pData->sBundleBaseName = _rResourceBundleBaseName; - } - - //-------------------------------------------------------------------- ResourceBasedEventLogger::ResourceBasedEventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pResourceBundleBaseName, const sal_Char* _pAsciiLoggerName ) :EventLogger( _rxContext, _pAsciiLoggerName ) diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx index 16193185de5d..db51b134cef1 100644 --- a/comphelper/source/misc/officeresourcebundle.cxx +++ b/comphelper/source/misc/officeresourcebundle.cxx @@ -202,14 +202,6 @@ namespace comphelper //= OfficeResourceBundle //==================================================================== //-------------------------------------------------------------------- - OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const ::rtl::OUString& _bundleBaseName ) - :m_pImpl( new ResourceBundle_Impl( _context, _bundleBaseName ) ) - { - if ( !_context.is() ) - throw NullPointerException(); - } - - //-------------------------------------------------------------------- OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const sal_Char* _bundleBaseAsciiName ) :m_pImpl( new ResourceBundle_Impl( _context, ::rtl::OUString::createFromAscii( _bundleBaseAsciiName ) ) ) { diff --git a/comphelper/source/misc/serviceinfohelper.cxx b/comphelper/source/misc/serviceinfohelper.cxx index f90598e93489..1d648ae29139 100644 --- a/comphelper/source/misc/serviceinfohelper.cxx +++ b/comphelper/source/misc/serviceinfohelper.cxx @@ -63,30 +63,6 @@ sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const ::rtl::OUString& Ser return aSeq; } -/** this method concatenates the given sequences and returns the result - */ -::com::sun::star::uno::Sequence< ::rtl::OUString > ServiceInfoHelper::concatSequences( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq1, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq2 ) throw() -{ - const sal_Int32 nLen1 = rSeq1.getLength(); - const sal_Int32 nLen2 = rSeq2.getLength(); - - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSeq( nLen1 + nLen2 ); - - ::rtl::OUString* pStrings = aSeq.getArray(); - - sal_Int32 nIdx; - const ::rtl::OUString* pStringSrc = rSeq1.getConstArray(); - for( nIdx = 0; nIdx < nLen1; nIdx++ ) - *pStrings++ = *pStringSrc++; - - pStringSrc = rSeq2.getConstArray(); - for( nIdx = 0; nIdx < nLen2; nIdx++ ) - *pStrings++ = *pStringSrc++; - - return aSeq; -} - /** this method adds a variable number of char pointer to a given Sequence */ void ServiceInfoHelper::addToSequence( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq, sal_uInt16 nServices, /* char * */ ... ) throw() diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx index 19646af5c5ad..43b2b4df4927 100644 --- a/comphelper/source/property/propertysethelper.cxx +++ b/comphelper/source/property/propertysethelper.cxx @@ -66,13 +66,6 @@ PropertyMapEntry* PropertySetHelperImpl::find( const OUString& aName ) const thr /////////////////////////////////////////////////////////////////////// -PropertySetHelper::PropertySetHelper( ) -{ - mp = new PropertySetHelperImpl; - mp->mpInfo = new PropertySetInfo; - mp->mpInfo->acquire(); -} - PropertySetHelper::PropertySetHelper( comphelper::PropertySetInfo* pInfo ) throw() { mp = new PropertySetHelperImpl; @@ -92,16 +85,6 @@ PropertySetHelper::~PropertySetHelper() throw() delete mp; } -void PropertySetHelper::setInfo( comphelper::PropertySetInfo* pInfo ) throw() -{ - OSL_ENSURE( pInfo != NULL, "need pInfo" ); - OSL_ENSURE( mp->mpInfo != NULL, "where's the old pInfo?" ); - - mp->mpInfo->release(); - mp->mpInfo = pInfo; - mp->mpInfo->acquire(); -} - // XPropertySet Reference< XPropertySetInfo > SAL_CALL PropertySetHelper::getPropertySetInfo( ) throw(RuntimeException) { diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx index 547277783ae8..c007f6b74ebd 100644 --- a/comphelper/source/property/propertysetinfo.cxx +++ b/comphelper/source/property/propertysetinfo.cxx @@ -182,11 +182,6 @@ void PropertySetInfo::add( PropertyMapEntry* pMap ) throw() mpMap->add( pMap ); } -void PropertySetInfo::add( PropertyMapEntry* pMap, sal_Int32 nCount ) throw() -{ - mpMap->add( pMap, nCount ); -} - void PropertySetInfo::remove( const rtl::OUString& aName ) throw() { mpMap->remove( aName ); diff --git a/comphelper/source/streaming/streamsection.cxx b/comphelper/source/streaming/streamsection.cxx index 249a1642f925..25b1efefd4f5 100644 --- a/comphelper/source/streaming/streamsection.cxx +++ b/comphelper/source/streaming/streamsection.cxx @@ -101,20 +101,6 @@ OStreamSection::~OStreamSection() } } // ----------------------------------------------------------------------------- -sal_Int32 OStreamSection::available() -{ - sal_Int32 nBytes = 0; - try - { // don't allow any exceptions to leave this block, this may be called during the stack unwinding of an exception - if (m_xInStream.is() && m_xMarkStream.is()) - nBytes = m_xMarkStream->offsetToMark(m_nBlockStart) - sizeof(m_nBlockLen); - } - catch(const staruno::Exception&) - { - } - return nBytes; -} -// ----------------------------------------------------------------------------- } // namespace comphelper diff --git a/comphelper/source/xml/attributelist.cxx b/comphelper/source/xml/attributelist.cxx index a31ea94fa7a2..5fbb81ffb766 100644 --- a/comphelper/source/xml/attributelist.cxx +++ b/comphelper/source/xml/attributelist.cxx @@ -131,31 +131,6 @@ void AttributeList::AddAttribute( const OUString &sName , m_pImpl->vecAttribute.push_back( TagAttribute_Impl( sName , sType , sValue ) ); } -void AttributeList::Clear() -{ - m_pImpl->vecAttribute.clear(); - - OSL_ENSURE( ! getLength(), "Length > 0 after AttributeList::Clear!"); -} - -void AttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r ) -{ - OSL_ENSURE( r.is(), "r isn't!" ); - - sal_Int32 nMax = r->getLength(); - sal_Int32 nTotalSize = m_pImpl->vecAttribute.size() + nMax; - m_pImpl->vecAttribute.reserve( nTotalSize ); - - for( sal_Int16 i = 0 ; i < nMax ; i ++ ) { - m_pImpl->vecAttribute.push_back( TagAttribute_Impl( - r->getNameByIndex( i ) , - r->getTypeByIndex( i ) , - r->getValueByIndex( i ))); - } - - OSL_ENSURE( nTotalSize == getLength(), "nTotalSize != getLength()"); -} - } // namespace comphelper /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/unusedcode.easy b/unusedcode.easy index c08ba6f189b6..05808d423f29 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -948,34 +948,14 @@ canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const canvas::tools::ElapsedTime::getTimeBase() const canvas::tools::calcRectToRectTransform(basegfx::B2DHomMatrix&, basegfx::B2DRange const&, basegfx::B2DRange const&, basegfx::B2DHomMatrix const&) canvas::tools::clipBlit(basegfx::B2IRange&, basegfx::B2IPoint&, basegfx::B2IRange const&, basegfx::B2IRange const&) -canvas::tools::verifyInput(com::sun::star::geometry::RealSize2D const&, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, short) -canvas::tools::verifyInput(com::sun::star::rendering::FloatingPointBitmapLayout const&, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, short) cmis::Content::exchangeIdentity(com::sun::star::uno::Reference<com::sun::star::ucb::XContentIdentifier> const&) cmis::Content::queryChildren(std::__debug::list<rtl::Reference<cmis::Content>, std::allocator<rtl::Reference<cmis::Content> > >&) -comphelper::AccessibleEventNotifier::getEventListeners(unsigned int) -comphelper::AttributeList::AppendAttributeList(com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&) -comphelper::AttributeList::Clear() -comphelper::EventLogger::addLogHandler(com::sun::star::uno::Reference<com::sun::star::logging::XLogHandler> const&) -comphelper::EventLogger::getLogLevel() const -comphelper::EventLogger::getName() const -comphelper::EventLogger::removeLogHandler(com::sun::star::uno::Reference<com::sun::star::logging::XLogHandler> const&) -comphelper::EventLogger::setLogLevel(int) const comphelper::FastPropertySetInfo::FastPropertySetInfo() comphelper::FastPropertySetInfo::addProperty(com::sun::star::beans::Property const&) comphelper::OAccessibleSelectionHelper::OAccessibleSelectionHelper() comphelper::OAccessibleTextHelper::OAccessibleTextHelper() -comphelper::OContainerListenerAdapter::lock() -comphelper::OContainerListenerAdapter::unlock() -comphelper::OInteractionRequest::clearContinuations() comphelper::OPropertyContainerHelper::modifyAttributes(int, int, int) comphelper::OSelectionChangeListener::disposeAdapter() -comphelper::OStreamSection::available() -comphelper::OfficeResourceBundle::OfficeResourceBundle(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&) -comphelper::PropertySetHelper::PropertySetHelper() -comphelper::PropertySetHelper::setInfo(comphelper::PropertySetInfo*) -comphelper::PropertySetInfo::add(comphelper::PropertyMapEntry*, int) -comphelper::ResourceBasedEventLogger::ResourceBasedEventLogger(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&) -comphelper::ServiceInfoHelper::concatSequences(com::sun::star::uno::Sequence<rtl::OUString> const&, com::sun::star::uno::Sequence<rtl::OUString> const&) comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&, com::sun::star::uno::Any const&) const |