Re: [PATCH] Removed unused code from vcl
On Wed, Apr 25, 2012 at 2:16 PM, Vicente Vendrell wrote: > Here is the patch from unused method Dialog::Dialog(Window*, ResId const&) Looks good. Can you confirm this patches are under the LGPLv3+/MPL+ licenses? -- Jesús Corrius ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code from vcl
Here is the patch from unused method Dialog::Dialog(Window*, ResId const&) Have a nice day! 0001-Removed-usused-method-Dialog-Dialog-Window-ResId-con.patch Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PUSHED][PATCH] Removed unused code from editeng
Looks good, pushed, thanks for these. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code from editeng
0001-Removed-unused-code-from-editeng.patch Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PUSHED][PATCH] removed unused code
On Fri, 2012-03-16 at 14:42 +0100, Petr Vorel wrote: > Hi there, > > another unused code removed (part of oox). Looks good, pushed now, thanks for this. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] removed unused code
Hi there, another unused code removed (part of oox). Regards, Petr >From 2221c91a53383024121bfa01f01055510e3642ae Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Fri, 16 Mar 2012 12:44:20 +0100 Subject: [PATCH] removed unused code --- oox/inc/oox/drawingml/textbodyproperties.hxx |1 - oox/inc/oox/drawingml/textliststyle.hxx|4 - oox/inc/oox/export/chartexport.hxx |5 - oox/source/drawingml/chart/objectformatter.cxx | 14 -- oox/source/drawingml/fillproperties.cxx|5 - oox/source/drawingml/shape.cxx | 12 -- oox/source/drawingml/textbodyproperties.cxx|5 - oox/source/drawingml/textliststyle.cxx | 11 -- oox/source/export/ColorPropertySet.cxx | 10 -- oox/source/export/ColorPropertySet.hxx |3 - oox/source/export/chartexport.cxx | 187 oox/source/export/drawingml.cxx| 35 - unusedcode.easy| 14 -- 13 files changed, 0 insertions(+), 306 deletions(-) diff --git a/oox/inc/oox/drawingml/textbodyproperties.hxx b/oox/inc/oox/drawingml/textbodyproperties.hxx index e155d30..adb9c1f 100644 --- a/oox/inc/oox/drawingml/textbodyproperties.hxx +++ b/oox/inc/oox/drawingml/textbodyproperties.hxx @@ -47,7 +47,6 @@ struct TextBodyProperties explicitTextBodyProperties(); -voidpushToPropMap( PropertyMap& rPropMap ) const; voidpushVertSimulation(); }; diff --git a/oox/inc/oox/drawingml/textliststyle.hxx b/oox/inc/oox/drawingml/textliststyle.hxx index 5ce8ef7..29d8f29 100644 --- a/oox/inc/oox/drawingml/textliststyle.hxx +++ b/oox/inc/oox/drawingml/textliststyle.hxx @@ -51,10 +51,6 @@ public: inline const TextParagraphPropertiesVector& getAggregationListStyle() const { return maAggregationListStyle; }; inline TextParagraphPropertiesVector& getAggregationListStyle() { return maAggregationListStyle; }; -#if OSL_DEBUG_LEVEL > 0 -void dump() const; -#endif - protected: TextParagraphPropertiesVector maListStyle; diff --git a/oox/inc/oox/export/chartexport.hxx b/oox/inc/oox/export/chartexport.hxx index 5bca83f..e041c38 100644 --- a/oox/inc/oox/export/chartexport.hxx +++ b/oox/inc/oox/export/chartexport.hxx @@ -157,9 +157,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries > > & aSeriesSeq, sal_Bool bJapaneseCandleSticks, sal_Int32& nAttachedAxis ); -void exportDataSeq( -const com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xValueSeq, -sal_Int32 elementTokenId ); void exportSeriesText( const com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xValueSeq ); void exportSeriesCategory( @@ -176,8 +173,6 @@ private: void exportFirstSliceAng(); void exportAxes( ); -void exportXAxis( AxisIdPair aAxisIdPair ); -void exportYAxis( AxisIdPair aAxisIdPair ); void exportAxis( AxisIdPair aAxisIdPair ); void _exportAxis( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xAxisProp, diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx index ab9e4cc..2dfdaf9 100644 --- a/oox/source/drawingml/chart/objectformatter.cxx +++ b/oox/source/drawingml/chart/objectformatter.cxx @@ -728,11 +728,6 @@ public: PropertySet& rPropSet, const TextCharacterProperties& rTextProps ); -/** Sets automatic line properties to the passed property set. */ -voidconvertAutomaticLine( -PropertySet& rPropSet, -sal_Int32 nSeriesIdx ); - /** Sets automatic fill properties to the passed property set. */ voidconvertAutomaticFill( PropertySet& rPropSet, @@ -1017,15 +1012,6 @@ void ObjectTypeFormatter::convertTextFormatting( PropertySet& rPropSet, const Te maTextFormatter.convertFormatting( rPropSet, &rTextProps ); } -void ObjectTypeFormatter::convertAutomaticLine( PropertySet& rPropSet, sal_Int32 nSeriesIdx ) -{ -ShapePropertyMap aPropMap( mrModelObjHelper, *mrEntry.mpPropInfo ); -ModelRef< Shape > xShapeProp; -maLineFormatter.convertFormatting( aPropMap, xShapeProp, nSeriesIdx ); -maEffectFormatter.convertFormatting( aPropMap, xShapeProp, nSeriesIdx ); -rPropSet.setProperties( aPropMap ); -} - void ObjectTypeFormatter::convertAutomaticFill( PropertySet& rPropSet, sal_Int32 nSeriesIdx ) { ShapePropertyMap aPropMap( mrModelObjHelper, *mrEntry.mpPropInfo ); diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 0a49985..07d
Re: [PATCH] Removed unused code
@all: Was wondering: Should we be removing the todo code, please? On 02/26/2012 12:29 AM, Bartolomé Sánchez Salado wrote: > Hello. > > I've removed some unused virtual methods inside backends as Michael > Meeks requested me: > > http://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg23796.html > > after my first commit: > > http://lists.freedesktop.org/archives/libreoffice-commits/2012-February/027928.html > > Bartolomé Sánchez. > > > > ___ > LibreOffice mailing list > LibreOffice@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Pushed] [PATCH] Removed unused code
Pushed. Thank you! On 02/26/2012 05:47 AM, Petr Vorel wrote: > Another patch removing some unused methods. > > > > ___ > LibreOffice mailing list > LibreOffice@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PUSHED][PATCH] Removed unused code
On Thu, 2012-02-23 at 22:54 +0100, Dézsi Szabolcs wrote: > Hi! I removed the following unused functions: ye gads!, that's a mega-patch. Thanks for this, pushed now. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code
Another patch removing some unused methods. >From 9ab3fcd3e16bdb0c0ea565777d7537bd9bf761f0 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Sun, 26 Feb 2012 00:04:49 +0100 Subject: [PATCH] Removed unused code --- sc/source/filter/excel/xepivot.cxx |9 - sc/source/filter/excel/xestring.cxx | 17 - sc/source/filter/excel/xestyle.cxx |6 -- sc/source/filter/excel/xlformula.cxx | 11 --- sc/source/filter/excel/xlstyle.cxx |5 - sc/source/filter/inc/xepivot.hxx |2 -- sc/source/filter/inc/xestring.hxx|2 -- sc/source/filter/inc/xestyle.hxx |6 -- sc/source/filter/inc/xlformula.hxx |3 --- sc/source/filter/inc/xlstyle.hxx |2 -- unusedcode.easy |6 -- 11 files changed, 0 insertions(+), 69 deletions(-) diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx index 60e2166..908b986 100644 --- a/sc/source/filter/excel/xepivot.cxx +++ b/sc/source/filter/excel/xepivot.cxx @@ -779,15 +779,6 @@ XclExpPCField* XclExpPivotCache::GetFieldAcc( sal_uInt16 nFieldIdx ) return maFieldList.GetRecord( nFieldIdx ).get(); } -XclExpPCField* XclExpPivotCache::GetFieldAcc( const rtl::OUString& rFieldName ) -{ -XclExpPCField* pField = 0; -for( size_t nPos = 0, nSize = maFieldList.GetSize(); !pField && (nPos < nSize); ++nPos ) -if( maFieldList.GetRecord( nPos )->GetFieldName() == rFieldName ) -pField = maFieldList.GetRecord( nPos ).get(); -return pField; -} - void XclExpPivotCache::AddFields( const ScDPObject& rDPObj ) { AddStdFields( rDPObj ); diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx index d12ebe8..2053a68 100644 --- a/sc/source/filter/excel/xestring.cxx +++ b/sc/source/filter/excel/xestring.cxx @@ -184,23 +184,6 @@ void XclExpString::AppendByte( sal_Unicode cChar, rtl_TextEncoding eTextEnc ) // formatting runs -void XclExpString::SetFormats( const XclFormatRunVec& rFormats ) -{ -maFormats = rFormats; -#if OSL_DEBUG_LEVEL > 0 -if( IsRich() ) -{ -XclFormatRunVec::const_iterator aCurr = maFormats.begin(); -XclFormatRunVec::const_iterator aPrev = aCurr; -XclFormatRunVec::const_iterator aEnd = maFormats.end(); -for( ++aCurr; aCurr != aEnd; ++aCurr, ++aPrev ) -OSL_ENSURE( aPrev->mnChar < aCurr->mnChar, "XclExpString::SetFormats - invalid char order" ); -OSL_ENSURE( aPrev->mnChar <= mnLen, "XclExpString::SetFormats - invalid char index" ); -} -#endif -LimitFormatCount( mbIsBiff8 ? EXC_STR_MAXLEN : EXC_STR_MAXLEN_8BIT ); -} - void XclExpString::AppendFormat( sal_uInt16 nChar, sal_uInt16 nFontIdx, bool bDropDuplicate ) { OSL_ENSURE( maFormats.empty() || (maFormats.back().mnChar < nChar), "XclExpString::AppendFormat - invalid char index" ); diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 1d7f190..ae51486 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -1124,12 +1124,6 @@ sal_uInt16 XclExpFontBuffer::Insert( const SfxItemSet& rItemSet, return Insert( aFont, eColorType, bAppFont ); } -sal_uInt16 XclExpFontBuffer::Insert( const ScPatternAttr& rPattern, -sal_Int16 nScript, XclExpColorType eColorType, bool bAppFont ) -{ -return Insert( rPattern.GetItemSet(), nScript, eColorType, bAppFont ); -} - void XclExpFontBuffer::Save( XclExpStream& rStrm ) { maFontList.Save( rStrm ); diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx index 02154ba..8685041 100644 --- a/sc/source/filter/excel/xlformula.cxx +++ b/sc/source/filter/excel/xlformula.cxx @@ -483,12 +483,6 @@ XclTokenArray::XclTokenArray( bool bVolatile ) : { } -XclTokenArray::XclTokenArray( ScfUInt8Vec& rTokVec, bool bVolatile ) : -mbVolatile( bVolatile ) -{ -maTokVec.swap( rTokVec ); -} - XclTokenArray::XclTokenArray( ScfUInt8Vec& rTokVec, ScfUInt8Vec& rExtDataVec, bool bVolatile ) : mbVolatile( bVolatile ) { @@ -598,11 +592,6 @@ XclTokenArrayIterator::XclTokenArrayIterator( const XclTokenArrayIterator& rTokA SkipSpaces(); } -void XclTokenArrayIterator::Init() -{ -mppScTokenBeg = mppScTokenEnd = mppScToken = 0; -} - void XclTokenArrayIterator::Init( const ScTokenArray& rScTokArr, bool bSkipSpaces ) { sal_uInt16 nTokArrLen = rScTokArr.GetLen(); diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx index db0603d..e8ef58e 100644 --- a/sc/source/filter/excel/xlstyle.cxx +++ b/sc/source/filter/excel/xlstyle.cxx @@ -1751,11 +1751,6 @@ void XclXFBase::SetAllUsedFlags( bool bUsed ) mbProtUsed = mbFontUsed = mbFmtUsed = mbAlignUsed = mbBorderUsed = mbAreaUsed = bUsed
[PATCH] Removed unused code
Hello. I've removed some unused virtual methods inside backends as Michael Meeks requested me: http://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg23796.html after my first commit: http://lists.freedesktop.org/archives/libreoffice-commits/2012-February/027928.html Bartolomé Sánchez. From 0f07b50a75ff489320f46aa8123ce10548d1a300 Mon Sep 17 00:00:00 2001 From: elbarto Date: Sat, 25 Feb 2012 19:34:35 +0100 Subject: [PATCH] Removed unused code. --- avmedia/source/gstreamer/gstplayer.cxx | 26 avmedia/source/gstreamer/gstplayer.hxx |3 -- avmedia/source/quicktime/player.hxx|3 -- avmedia/source/quicktime/player.mm | 34 avmedia/source/win/player.cxx | 31 - avmedia/source/win/player.hxx |3 -- offapi/com/sun/star/media/XPlayer.idl | 20 -- 7 files changed, 0 insertions(+), 120 deletions(-) diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index fa1dcbd..ee54965 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -396,32 +396,6 @@ double SAL_CALL Player::getMediaTime( ) // -- -void SAL_CALL Player::setStopTime( double /*fTime*/ ) -throw (uno::RuntimeException) -{ -// TODO implement -} - -// -- - -double SAL_CALL Player::getStopTime( ) -throw (uno::RuntimeException) -{ -// Get the time at which to stop - -return 0; -} - -// -- - -void SAL_CALL Player::setRate( double /*fRate*/ ) -throw (uno::RuntimeException) -{ -// TODO set the window rate -} - -// -- - double SAL_CALL Player::getRate( ) throw (uno::RuntimeException) { diff --git a/avmedia/source/gstreamer/gstplayer.hxx b/avmedia/source/gstreamer/gstplayer.hxx index 0e04d67..b5d7d83 100644 --- a/avmedia/source/gstreamer/gstplayer.hxx +++ b/avmedia/source/gstreamer/gstplayer.hxx @@ -62,9 +62,6 @@ public: virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); -virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); -virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException); -virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/avmedia/source/quicktime/player.hxx b/avmedia/source/quicktime/player.hxx index da9bbfc..ec795fd 100644 --- a/avmedia/source/quicktime/player.hxx +++ b/avmedia/source/quicktime/player.hxx @@ -59,9 +59,6 @@ public: virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); -virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); -virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException); -virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/avmedia/source/quicktime/player.mm b/avmedia/source/quicktime/player.mm index e4550a0..15c39e9 100644 --- a/avmedia/source/quicktime/player.mm +++ b/avmedia/source/quicktime/player.mm @@ -226,40 +226,6 @@ double SAL_CALL Player::getMediaTime( ) // -- -void SAL_CALL Player::setStopTime( double fTime ) -throw (uno::RuntimeException) -{ -OSL_TRACE ("Player::setStopTime %f", fTime); - -mnStopTime = fTime; -} - -// -- - -double SAL_CALL Player::getStopTime( ) -throw (uno::RuntimeException) -{ -
[PATCH] Removed unused code from avmedia module
Hi, I removed unused code from avmedia module (unusedcode.easy) Removed functions: avmedia::priv::MediaWindowBaseImpl::getStopTime() const avmedia::priv::MediaWindowBaseImpl::setRate(double) avmedia::priv::MediaWindowBaseImpl::setStopTime(double) Bartolomé Sánchez. From 5973baf060e6923fdac8a6a748dcdd26bf49ca85 Mon Sep 17 00:00:00 2001 From: elbarto Date: Sat, 18 Feb 2012 01:35:37 +0100 Subject: [PATCH] Removed unused code from avmedia. --- avmedia/source/viewer/mediawindowbase_impl.cxx | 23 --- avmedia/source/viewer/mediawindowbase_impl.hxx |4 unusedcode.easy|3 --- 3 files changed, 0 insertions(+), 30 deletions(-) diff --git a/avmedia/source/viewer/mediawindowbase_impl.cxx b/avmedia/source/viewer/mediawindowbase_impl.cxx index 370eb98..b60a835 100644 --- a/avmedia/source/viewer/mediawindowbase_impl.cxx +++ b/avmedia/source/viewer/mediawindowbase_impl.cxx @@ -299,29 +299,6 @@ double MediaWindowBaseImpl::getMediaTime() const // - -void MediaWindowBaseImpl::setStopTime( double fTime ) -{ -if( mxPlayer.is() ) -mxPlayer->setStopTime( fTime ); -} - -// - - -double MediaWindowBaseImpl::getStopTime() const -{ -return( mxPlayer.is() ? mxPlayer->getStopTime() : 0.0 ); -} - -// - - -void MediaWindowBaseImpl::setRate( double fRate ) -{ -if( mxPlayer.is() ) -mxPlayer->setRate( fRate ); -} - -// - - double MediaWindowBaseImpl::getRate() const { return( mxPlayer.is() ? mxPlayer->getRate() : 0.0 ); diff --git a/avmedia/source/viewer/mediawindowbase_impl.hxx b/avmedia/source/viewer/mediawindowbase_impl.hxx index d8244d9..afd68e4 100644 --- a/avmedia/source/viewer/mediawindowbase_impl.hxx +++ b/avmedia/source/viewer/mediawindowbase_impl.hxx @@ -88,10 +88,6 @@ namespace avmedia voidsetMediaTime( double fTime ); double getMediaTime() const; -voidsetStopTime( double fTime ); -double getStopTime() const; - -voidsetRate( double fRate ); double getRate() const; voidsetPlaybackLoop( bool bSet ); diff --git a/unusedcode.easy b/unusedcode.easy index 78c00f0..8012e32 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -639,9 +639,6 @@ _ZSortFlys::Remove(_ZSortFly const&, unsigned short) _ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short) _ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short) _ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*) -avmedia::priv::MediaWindowBaseImpl::getStopTime() const -avmedia::priv::MediaWindowBaseImpl::setRate(double) -avmedia::priv::MediaWindowBaseImpl::setStopTime(double) basebmp::BitmapDevice::setDamageTracker(boost::shared_ptr const&) basebmp::debugDump(boost::shared_ptr const&, std::basic_ostream >&) basegfx::computeSetDifference(std::__debug::vector >&, basegfx::B2IBox const&, basegfx::B2IBox const&) -- 1.7.2.5 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PATCH] Removed unused code from vcl module
On Thu, 2012-02-16 at 17:13 +0100, Dézsi Szabolcs wrote: > Hi! I removed unused code from vcl module (used unusedcode.easy) Pushed; thanks :-) Michael. -- michael.me...@suse.com <><, Pseudo Engineer, itinerant idiot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code
Hi there, I removed a little bit of unused code (unusedcode.easy). This is my first contribution. This and any other is of course made available under the MPL/LGPLv3+. Regards, Petr >From 445f0c71e523f06f42f622d401b8d9af22b159d3 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Fri, 17 Feb 2012 18:07:24 +0100 Subject: [PATCH] Remove unused code. --- .../source/plugin/inc/plugin/unx/plugcon.hxx |3 -- extensions/source/plugin/unx/plugcon.cxx | 17 -- l10ntools/inc/export.hxx |2 - l10ntools/source/export.cxx| 23 linguistic/source/spelldsp.cxx | 15 - unusedcode.easy|5 vcl/inc/vcl/button.hxx |1 - vcl/source/control/button.cxx |6 - 8 files changed, 0 insertions(+), 72 deletions(-) diff --git a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx index 86c0e70..8c7175f 100644 --- a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx +++ b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx @@ -184,9 +184,6 @@ public: LINK( this, PluginConnector, WorkOnNewMessageHdl ). Call( (Mediator*)this ); } - -ConnectorInstance* getInstance( NPP ); -ConnectorInstance* getInstanceById( sal_uInt32 ); }; enum CommandAtoms diff --git a/extensions/source/plugin/unx/plugcon.cxx b/extensions/source/plugin/unx/plugcon.cxx index c178c47..1a44624 100644 --- a/extensions/source/plugin/unx/plugcon.cxx +++ b/extensions/source/plugin/unx/plugcon.cxx @@ -59,23 +59,6 @@ sal_uInt32 PluginConnector::GetNPPID( NPP instance ) return UnknownNPPID; } -ConnectorInstance* PluginConnector::getInstance( NPP instance ) -{ -size_t nLen = m_aInstances.size(); -for( size_t i=0; i instance == instance ) -return pInst; -} -return NULL; -} - -ConnectorInstance* PluginConnector::getInstanceById( sal_uInt32 nInstanceID ) -{ -return nInstanceID < static_cast(m_aInstances.size()) ? m_aInstances[ nInstanceID ] : NULL; -} - struct PtrStruct { char* pData; diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index c669a3b..97c5bf1 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -166,8 +166,6 @@ public: rtl::OString sPForm; -void Dump(); - ResData(const rtl::OString &rPF, const rtl::OString &rGId) : nWidth( 0 ), diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 6a43da8..3c0bff9 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -201,29 +201,6 @@ int GetError() // class ResData // -void ResData::Dump(){ -printf("**\nResData\n"); -printf("sPForm = %s , sResTyp = %s , sId = %s , sGId = %s , sHelpId = %s\n", -sPForm.getStr(), sResTyp.getStr(), sId.getStr(), -sGId.getStr(), sHelpId.getStr()); - -rtl::OString a("*pStringList"); -rtl::OString b("*pUIEntries"); -rtl::OString c("*pFilterList"); -rtl::OString d("*pItemList"); -rtl::OString e("*pPairedList"); -rtl::OString f("sText"); - -Export::DumpMap( f , sText ); - -if( pStringList ) Export::DumpExportList( a , *pStringList ); -if( pUIEntries )Export::DumpExportList( b , *pUIEntries ); -if( pFilterList ) Export::DumpExportList( c , *pFilterList ); -if( pItemList ) Export::DumpExportList( d , *pItemList ); -if( pPairedList ) Export::DumpExportList( e , *pPairedList ); -printf("\n"); -} - /*/ sal_Bool ResData::SetId( const rtl::OString& rId, sal_uInt16 nLevel ) /*/ diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index d809e9e..cf5a854 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -81,7 +81,6 @@ public: voidAppend( const OUString &rNew ); voidAppend( const std::vector< OUString > &rNew ); voidAppend( const Sequence< OUString > &rNew ); -voidRemove( const OUString &rText ); Sequence< OUString >GetSequence() const; }; @@ -164,20 +163,6 @@ Sequence< OUString > ProposalList::GetSequence() const return aRes; } -void ProposalList::Remove( const OUString &rText ) -{ -size_t nLen = aVec.size(); -for (size_t i = 0; i < nLen; ++i) -{ -OUString &rEntry = aVec[i]; -if (rEntry == rText) -{ -rEntry = OUString(); -break; // there should be only one matching entry -} -} -} - sal_Bool SvcListHasLanguage( const LangSvcEntries_Spell &rEntry, LanguageType nLanguage ) diff --git a/unusedcode.easy b/unusedcode.easy index 90d0de7..43a51a8 100755 --- a/
[PATCH] Removed unused code from cppcanvas module
Hi, i removed unused code from cppcanvas module (unusedcode.easy) removed functions: cppcanvas::BaseGfxFactory::createPolyPolygon(boost::shared_ptr const&, basegfx::B2DPolyPolygon const&) const cppcanvas::BaseGfxFactory::createText(boost::shared_ptr const&, rtl::OUString const&) const cppcanvas::BaseGfxFactory::~BaseGfxFactory() cppcanvas::VCLFactory::~VCLFactory() cppcanvas::internal::ImplRenderer::ImplRenderer(boost::shared_ptr const&, BitmapEx const&, cppcanvas::Renderer::Parameters const&) cppcanvas::internal::ImplRenderer::Map(basegfx::B2DPoint&) cppcanvas::internal::ImplRenderer::MapRectangle(double, double, double, double) cppcanvas::internal::ImplSprite::getGraphicDevice() const cppcanvas::internal::ImplSpriteCanvas::createSpriteFromBitmaps(com::sun::star::uno::Sequence > const&, signed char) cppcanvas::internal::TransparencyGroupActionFactory::createTransparencyGroupAction(std::auto_ptr&, cppcanvas::Renderer::Parameters const&, basegfx::B2DPoint const&, basegfx::B2DVector const&, double, boost::shared_ptr const&, cppcanvas::internal::OutDevState const&) cppcanvas::tools::modifyClip(com::sun::star::rendering::RenderState&, cppcanvas::internal::OutDevState const&, boost::shared_ptr const&, Point const&, basegfx::B2DVector const*, double const*) cppcanvas::tools::modifyClip(com::sun::star::rendering::RenderState&, cppcanvas::internal::OutDevState const&, boost::shared_ptr const&, basegfx::B2DHomMatrix const&) Szabolcs From 334e8bb034ecfd5b41cfed1906965e59171ae194 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 17 Feb 2012 14:06:34 +0100 Subject: [PATCH] Removed unused code from cppcanvas --- cppcanvas/inc/cppcanvas/basegfxfactory.hxx |6 -- cppcanvas/inc/cppcanvas/vclfactory.hxx |1 - cppcanvas/source/inc/implrenderer.hxx |5 -- cppcanvas/source/mtfrenderer/emfplus.cxx | 28 - cppcanvas/source/mtfrenderer/implrenderer.cxx | 48 --- cppcanvas/source/mtfrenderer/mtftools.cxx | 62 cppcanvas/source/mtfrenderer/mtftools.hxx | 56 -- .../source/mtfrenderer/transparencygroupaction.cxx | 19 -- .../source/mtfrenderer/transparencygroupaction.hxx | 28 - cppcanvas/source/wrapper/basegfxfactory.cxx| 31 -- cppcanvas/source/wrapper/implsprite.cxx|5 -- cppcanvas/source/wrapper/implsprite.hxx|4 - cppcanvas/source/wrapper/implspritecanvas.cxx |9 --- cppcanvas/source/wrapper/implspritecanvas.hxx |6 -- cppcanvas/source/wrapper/vclfactory.cxx|4 - unusedcode.easy| 12 16 files changed, 0 insertions(+), 324 deletions(-) diff --git a/cppcanvas/inc/cppcanvas/basegfxfactory.hxx b/cppcanvas/inc/cppcanvas/basegfxfactory.hxx index 5cb87aa..0aecf80 100644 --- a/cppcanvas/inc/cppcanvas/basegfxfactory.hxx +++ b/cppcanvas/inc/cppcanvas/basegfxfactory.hxx @@ -75,7 +75,6 @@ namespace cppcanvas coordinate space as the source polygon */ PolyPolygonSharedPtrcreatePolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly ) const; -PolyPolygonSharedPtrcreatePolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolyPolygon& rPoly ) const; /** Create an uninitialized bitmap with the given size */ @@ -85,16 +84,11 @@ namespace cppcanvas */ BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const; -/** Create a text portion with the given content string - */ -TextSharedPtr createText( const CanvasSharedPtr&, const ::rtl::OUString& ) const; - private: friend struct InitInstance2; // singleton BaseGfxFactory(); -~BaseGfxFactory(); // default: disabled copy/assignment BaseGfxFactory(const BaseGfxFactory&); diff --git a/cppcanvas/inc/cppcanvas/vclfactory.hxx b/cppcanvas/inc/cppcanvas/vclfactory.hxx index ab84534..14f4c51 100644 --- a/cppcanvas/inc/cppcanvas/vclfactory.hxx +++ b/cppcanvas/inc/cppcanvas/vclfactory.hxx @@ -102,7 +102,6 @@ namespace cppcanvas // singleton VCLFactory(); -~VCLFactory(); // default: disabled copy/assignment VCLFactory(const VCLFactory&); diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index 9c270e8..c93c83c 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -184,9 +184,6 @@ static float GetSwapFloat( SvStream& rSt ) ImplRenderer( const CanvasSharedPtr&rCanvas, const GDIMet
[PATCH] Removed unused code from drawinglayer
Hi, I removed unused function from module drawinglayer. (unusedcode.easy) removed functions: drawinglayer::attribute::FillBitmapAttribute::FillBitmapAttribute() drawinglayer::attribute::Sdr3DLightAttribute::Sdr3DLightAttribute() drawinglayer::attribute::Sdr3DObjectAttribute::Sdr3DObjectAttribute() drawinglayer::attribute::SdrFillBitmapAttribute::getLogSize() const drawinglayer::attribute::SdrLightingAttribute::getAmbientLight() const drawinglayer::attribute::SdrLineAttribute::SdrLineAttribute(basegfx::BColor const&) drawinglayer::attribute::SdrLineAttribute::isDashed() const drawinglayer::attribute::SdrLineFillShadowAttribute3D::isDefault() const drawinglayer::attribute::SdrSceneAttribute::getDistance() const drawinglayer::primitive2d::GraphicPrimitive2D::GraphicPrimitive2D(basegfx::B2DHomMatrix const&, GraphicObject const&) drawinglayer::primitive2d::PolyPolygonStrokeArrowPrimitive2D::PolyPolygonStrokeArrowPrimitive2D(basegfx::B2DPolyPolygon const&, drawinglayer::attribute::LineAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&) drawinglayer::primitive2d::PolyPolygonStrokeArrowPrimitive2D::PolyPolygonStrokeArrowPrimitive2D(basegfx::B2DPolyPolygon const&, drawinglayer::attribute::LineAttribute const&, drawinglayer::attribute::StrokeAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&) drawinglayer::primitive2d::PolygonStrokeArrowPrimitive2D::PolygonStrokeArrowPrimitive2D(basegfx::B2DPolygon const&, drawinglayer::attribute::LineAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&, drawinglayer::attribute::LineStartEndAttribute const&) drawinglayer::primitive2d::RenderGraphicPrimitive2D::setCurrentRasterizer() const drawinglayer::primitive2d::RenderGraphicPrimitive2D::setCurrentRasterizer(vcl::RenderGraphicRasterizer const&) const drawinglayer::primitive3d::PolygonStrokePrimitive3D::PolygonStrokePrimitive3D(basegfx::B3DPolygon const&, drawinglayer::attribute::LineAttribute const&) drawinglayer::processor3d::CollectingProcessor3D::CollectingProcessor3D(drawinglayer::geometry::ViewInformation3D const&) Szabolcs From 02e4857db382778d6de13622a109f4bf8e13059a Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 17 Feb 2012 13:18:17 +0100 Subject: [PATCH] Removed unused code from drawinlayer --- .../drawinglayer/attribute/fillbitmapattribute.hxx |1 - .../drawinglayer/attribute/sdrallattribute3d.hxx |3 -- .../attribute/sdrfillbitmapattribute.hxx |1 - .../drawinglayer/attribute/sdrlightattribute3d.hxx |1 - .../attribute/sdrlightingattribute3d.hxx |1 - .../drawinglayer/attribute/sdrlineattribute.hxx|4 --- .../attribute/sdrobjectattribute3d.hxx |1 - .../drawinglayer/attribute/sdrsceneattribute3d.hxx |1 - .../primitive2d/graphicprimitive2d.hxx |3 -- .../primitive2d/polygonprimitive2d.hxx |7 -- .../primitive2d/polypolygonprimitive2d.hxx | 15 - .../primitive2d/rendergraphicprimitive2d.hxx |2 - .../primitive3d/polygonprimitive3d.hxx |5 .../drawinglayer/processor3d/baseprocessor3d.hxx |1 - .../source/attribute/fillbitmapattribute.cxx |6 - .../source/attribute/sdrallattribute3d.cxx |9 --- .../source/attribute/sdrfillbitmapattribute.cxx|5 .../source/attribute/sdrlightattribute3d.cxx |6 - .../source/attribute/sdrlightingattribute3d.cxx|5 drawinglayer/source/attribute/sdrlineattribute.cxx | 11 - .../source/attribute/sdrobjectattribute3d.cxx |6 - .../source/attribute/sdrsceneattribute3d.cxx |5 .../source/primitive2d/graphicprimitive2d.cxx | 10 .../source/primitive2d/polygonprimitive2d.cxx | 11 - .../source/primitive2d/polypolygonprimitive2d.cxx | 23 .../primitive2d/rendergraphicprimitive2d.cxx | 10 .../source/primitive3d/polygonprimitive3d.cxx | 10 .../source/processor3d/baseprocessor3d.cxx |6 - unusedcode.easy| 17 -- 29 files changed, 0 insertions(+), 186 deletions(-) diff --git a/drawinglayer/inc/drawinglayer/attribute/fillbitmapattribute.hxx b/drawinglayer/inc/drawinglayer/attribute/fillbitmapattribute.hxx index 96b181d..285bf79 100644 --- a/drawinglayer/inc/drawinglayer/attribute/fillbitmapattribute.hxx +++ b/drawinglayer/inc/drawinglayer/attribute/fillbitmapattribute.hxx @@ -65,7 +65,6 @@ namespace drawinglayer const basegfx::B2DPoint& rTopLeft, const basegfx::B2DVector& rSize, bool bTiling); -
[PATCH] Removed unused code from vcl module
Hi! I removed unused code from vcl module (used unusedcode.easy) Removed methods: vcl::LazyDeletor::is_less(Menu*, Menu*) vcl::PDFExtOutDevData::EndGroup() vcl::PDFExtOutDevData::GetFormsFormat() const vcl::PDFExtOutDevData::SetAutoAdvanceTime(unsigned int, int) vcl::PDFExtOutDevData::SetOutlineItemDest(int, int) vcl::PDFExtOutDevData::SetOutlineItemParent(int, int) vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const&) Szabolcs From 234d4763ccc9bc6882f39340835656bf11a03490 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Thu, 16 Feb 2012 17:02:13 +0100 Subject: [PATCH] Removed unused code from vcl module --- unusedcode.easy |7 vcl/inc/vcl/pdfextoutdevdata.hxx| 62 --- vcl/source/gdi/pdfextoutdevdata.cxx | 35 --- vcl/source/helper/lazydelete.cxx|8 4 files changed, 0 insertions(+), 112 deletions(-) diff --git a/unusedcode.easy b/unusedcode.easy index 9a40c2f..0a792ab 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1452,11 +1452,4 @@ ucbhelper::ContentBroker::ContentBroker(com::sun::star::uno::Reference::is_less(Menu*, Menu*) -vcl::PDFExtOutDevData::EndGroup() -vcl::PDFExtOutDevData::GetFormsFormat() const -vcl::PDFExtOutDevData::SetAutoAdvanceTime(unsigned int, int) -vcl::PDFExtOutDevData::SetOutlineItemDest(int, int) -vcl::PDFExtOutDevData::SetOutlineItemParent(int, int) -vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const&) vcl::PDFWriter::DrawPixel(Polygon const&, Color const*) diff --git a/vcl/inc/vcl/pdfextoutdevdata.hxx b/vcl/inc/vcl/pdfextoutdevdata.hxx index c1be576..665303b 100644 --- a/vcl/inc/vcl/pdfextoutdevdata.hxx +++ b/vcl/inc/vcl/pdfextoutdevdata.hxx @@ -131,7 +131,6 @@ public : sal_BoolGetIsExportFormFields() const; voidSetIsExportFormFields( const sal_Bool bExportFormFields ); -sal_Int32 GetFormsFormat() const; voidSetFormsFormat( const sal_Int32 nFormsFormat ); sal_BoolGetIsExportBookmarks() const; @@ -166,13 +165,6 @@ public : /** End render output -This method ends grouped render output without -further actions. - */ -voidEndGroup(); - -/** End render output - This method ends grouped render output, that can be represented by a GfxLink. This is typically used for external graphic files, such as JPEGs, EPS files etc. @@ -321,49 +313,6 @@ public : */ sal_Int32 CreateOutlineItem( sal_Int32 nParent = 0, const rtl::OUString& rText = rtl::OUString(), sal_Int32 nDestID = -1 ); -/** Set an outline item's parent - -@param nItem -specififies which item should be reparented. - -@param nNewParent -specifies which outline item will be the item's new parent. -Use 0 for reparenting to top level. - -@returns --1 if the item does not exist --2 if the new parent does not exist, item will be reparented to top level. -*/ -sal_Int32 SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent ); - -/** Set an outline item's title text - -@param nItem -specififies which item should get a new text - -@param rText -sets the title text of the item - -@returns -0 if the item exists and the text was changed --1 if the item does not exist -*/ -sal_Int32 SetOutlineItemText( sal_Int32 nItem, const rtl::OUString& rText ); - -/** Set an outline item's destination - -@param nItem -specififies which item should get a new dest - -@param nDestID -specifies the item's new destination - -@returns --1 if the item does not exist --2 if the new dest does not exist, dest will remain unchanged -*/ -sal_Int32 SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID ); - /** Create a new note on a page @param rRect @@ -518,17 +467,6 @@ public : */ void SetAlternateText( const String& rText ); -/** Sets the time in seconds a page will appear before the next -page is shown automatically - -@param nSeconds -time in seconds the current page will be shown; pass 0 for manual advancement - -@param nPageNr -the page number to apply the autoadvance time to; -1 denotes the current page -*/ -void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr = -1 ); - /** Sets the transitional effect to be applied when the current page gets shown. @param eType diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index 23d81a4..b917a0a 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -599,10 +599,6 @@ void PDFExtOutDevData::SetIsExportFormFields( const sal_Bool bExportFomtFields ) { mbExportFormFields = bExportFomtFields; } -sal_Int32 PDFExtOutDevData::GetFormsForm
Re: [PUSHED][PATCH] Removed unused code from MSFilterTracer
On Thu, 2012-02-16 at 12:42 +, Caolán McNamara wrote: > Its all out of date, it was an effort to sort of log what MSWord > features we *didn't* import/export got used in documents in order to > target what we'd implement next but I know I found it more of an effort > to log the details of what we didn't implement than actually implement > them :-) Added as an easy hack: https://bugs.freedesktop.org/show_bug.cgi?id=46166 :-) Michael. -- michael.me...@suse.com <><, Pseudo Engineer, itinerant idiot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code from svl, svtools and sfx2
Hi! I removed some unused code from modules svl, svltools and sfx2 according to unusedcode.easy. Removed functions: SfxAppMenuControl_Impl::RegisterControl(unsigned short, SfxModule*) SfxApplication::Main() SfxBrushItemLink::Set(SfxBrushItemLink*) SfxHintPoster::RegisterEvent() SfxProgress::Lock() SfxRangeItem::SfxRangeItem(unsigned short, SvStream&) SfxULongRanges::Contains(unsigned long) const SfxULongRanges::Intersects(SfxULongRanges const&) const Ps.: if it's ok, update unusedcode.easy accordingly, i think they're still in it. Forgot to delete them :$ From 41d2d08ef1228fb658e11e89951837297320ea3c Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Thu, 16 Feb 2012 14:00:48 +0100 Subject: [PATCH] Removed unused code from svl and sfx2 --- sfx2/inc/sfx2/app.hxx|1 - sfx2/inc/sfx2/childwin.hxx |2 +- sfx2/inc/sfx2/hintpost.hxx |1 - sfx2/inc/sfx2/mnuitem.hxx|1 - sfx2/inc/sfx2/progress.hxx |1 - sfx2/source/appl/appmain.cxx |4 -- sfx2/source/bastyp/progress.cxx | 39 sfx2/source/menu/mnuitem.cxx |8 - sfx2/source/notify/hintpost.cxx |6 svl/inc/svl/nranges.hxx |2 - svl/inc/svl/rngitem.hxx |1 - svl/source/items/nranges.cxx | 61 -- svl/source/items/rngitem_inc.cxx | 10 -- svtools/inc/svtools/wallitem.hxx |2 +- svtools/source/misc/wallitem.cxx |4 +- unusedcode.easy | 16 +- 16 files changed, 12 insertions(+), 147 deletions(-) diff --git a/sfx2/inc/sfx2/app.hxx b/sfx2/inc/sfx2/app.hxx index c255035..ea9dbc2 100644 --- a/sfx2/inc/sfx2/app.hxx +++ b/sfx2/inc/sfx2/app.hxx @@ -147,7 +147,6 @@ class SFX2_DLLPUBLIC SfxApplication: public SfxShell voidInit(); voidExit(); voidSettingsChange( sal_uInt16, const AppSettings & ); -voidMain( ); voidPreInit( ); voidQuit(); voidDeinitialize(); diff --git a/sfx2/inc/sfx2/childwin.hxx b/sfx2/inc/sfx2/childwin.hxx index fc7cf83..c96d1a6 100644 --- a/sfx2/inc/sfx2/childwin.hxx +++ b/sfx2/inc/sfx2/childwin.hxx @@ -307,7 +307,7 @@ public: return pWin; \ } \ sal_uInt16 Class::GetChildWindowId () \ -{ return MyID; } \ + { return MyID; } \ voidClass::RegisterChildWindow (sal_Bool bVis, SfxModule *pMod, sal_uInt16 nFlags) \ { \ SfxChildWinFactory *pFact = new SfxChildWinFactory( \ diff --git a/sfx2/inc/sfx2/hintpost.hxx b/sfx2/inc/sfx2/hintpost.hxx index f455d84..0f8eae2 100644 --- a/sfx2/inc/sfx2/hintpost.hxx +++ b/sfx2/inc/sfx2/hintpost.hxx @@ -56,7 +56,6 @@ class SfxHintPoster: public SvRefBase GenLink aLink; private: -voidRegisterEvent(); DECL_LINK( DoEvent_Impl, SfxHint * ); protected: diff --git a/sfx2/inc/sfx2/mnuitem.hxx b/sfx2/inc/sfx2/mnuitem.hxx index 62ebce6..08acfa6 100644 --- a/sfx2/inc/sfx2/mnuitem.hxx +++ b/sfx2/inc/sfx2/mnuitem.hxx @@ -56,7 +56,6 @@ public: SfxMenuControl( sal_uInt16, SfxBindings&); static SfxMenuControl* CreateImpl( sal_uInt16 nId, Menu &rMenu, SfxBindings &rBindings ); -static void RegisterControl( sal_uInt16 nSlotId = 0, SfxModule *pMod=NULL ); ~SfxMenuControl(); diff --git a/sfx2/inc/sfx2/progress.hxx b/sfx2/inc/sfx2/progress.hxx index 6dbdcfa..2f397c3 100644 --- a/sfx2/inc/sfx2/progress.hxx +++ b/sfx2/inc/sfx2/progress.hxx @@ -66,7 +66,6 @@ public: voidSuspend(); sal_BoolIsSuspended() const { return bSuspended; } -voidLock(); voidUnLock(); voidReschedule(); diff --git a/sfx2/source/appl/appmain.cxx b/sfx2/source/appl/appmain.cxx index 3a16624..fbc6c77 100644 --- a/sfx2/source/appl/appmain.cxx +++ b/sfx2/source/appl/appmain.cxx @@ -118,10 +118,6 @@ void SfxApplication::PreInit( ) { } -void SfxApplication::Main( ) -{ -} - //- SfxFilterMatcher& SfxApplication::GetFilterMatcher() diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index d6fb779..22025a6 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -461,45 +461,6 @@ void SfxProgress::Suspend() // --- -void SfxProgress::Lock() -{ -if( pImp->pActiveProgress ) return; -// No Reschedule for Embedded-Objects, -// because we are defenseless against th
Re: [PUSHED][PATCH] Removed unused code from MSFilterTracer
On Thu, 2012-02-16 at 11:18 +0100, Dézsi Szabolcs wrote: > Hi! > > sry didn't attach file :$ > This is my first patch, I hope everything's correct. > Removed functions: (used unusedcode.easy) Looks good to me, pushed now, thanks for this. IMO the whole MSFilterTracer thing can/should go if you want to have a look at that. Its all out of date, it was an effort to sort of log what MSWord features we *didn't* import/export got used in documents in order to target what we'd implement next but I know I found it more of an effort to log the details of what we didn't implement than actually implement them :-) C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code from filter module MSFilterTracer class
Hi! This is my first patch, I hope everything's correct. Removed functions: MSFilterTracer::SetProperty(rtl::OUString const&, com::sun::star::uno::Any const&) MSFilterTracer::StartElement(rtl::OUString const&, com::sun::star::uno::Reference) Files modified: filter/inc/filter/msfilter/msfiltertracer.hxx filter/source/msfilter/msfiltertracer.cxx ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[PATCH] Removed unused code from MSFilterTracer
Hi! sry didn't attach file :$ This is my first patch, I hope everything's correct. Removed functions: (used unusedcode.easy) MSFilterTracer::SetProperty(rtl::OUString const&, com::sun::star::uno::Any const&) MSFilterTracer::StartElement(rtl::OUString const&, com::sun::star::uno::Reference) Files modified: filter/inc/filter/msfilter/msfiltertracer.hxx filter/source/msfilter/msfiltertracer.cxx From e6c5331e5f55f847052588afbbcca1e41b3b2ca0 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Thu, 16 Feb 2012 11:06:56 +0100 Subject: [PATCH] Removed SetProperty and StartElement method of MSFilterTracer. --- filter/inc/filter/msfilter/msfiltertracer.hxx |2 -- filter/source/msfilter/msfiltertracer.cxx | 11 --- 2 files changed, 0 insertions(+), 13 deletions(-) diff --git a/filter/inc/filter/msfilter/msfiltertracer.hxx b/filter/inc/filter/msfilter/msfiltertracer.hxx index 66d20d6..e8fd049 100644 --- a/filter/inc/filter/msfilter/msfiltertracer.hxx +++ b/filter/inc/filter/msfilter/msfiltertracer.hxx @@ -80,7 +80,6 @@ class MSFILTER_DLLPUBLIC MSFilterTracer inline sal_Bool IsEnabled() const { return mbEnabled; } -void StartElement( const ::rtl::OUString& rName, ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > xAttribs ); void EndElement( const ::rtl::OUString& rName ); void Trace( const ::rtl::OUString& rElementID, const ::rtl::OUString& rMessage ); @@ -91,7 +90,6 @@ class MSFILTER_DLLPUBLIC MSFilterTracer /* initially all properties of the configuration file and the properties which are given to the c'tor can be retrieved */ ::com::sun::star::uno::Any GetProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any* pDefault = NULL ) const; -void SetProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rProperty ); }; #endif diff --git a/filter/source/msfilter/msfiltertracer.cxx b/filter/source/msfilter/msfiltertracer.cxx index 51b40d0..c54ec6c 100644 --- a/filter/source/msfilter/msfiltertracer.cxx +++ b/filter/source/msfilter/msfiltertracer.cxx @@ -174,12 +174,6 @@ void MSFilterTracer::EndTracing() mbEnabled = sal_False; } -void MSFilterTracer::StartElement( const rtl::OUString& rName, uno::Reference< xml::sax::XAttributeList > xAttribs ) -{ -if ( mxHandler.is() ) -mxHandler->startElement( rName, xAttribs ); -} - void MSFilterTracer::Trace( const rtl::OUString& rElement, const rtl::OUString& rMessage ) { if ( mbEnabled && mxLogger.is() ) @@ -233,9 +227,4 @@ uno::Any MSFilterTracer::GetProperty( const rtl::OUString& rPropName, const uno: return mpCfgItem->ReadAny( rPropName, aDefault ); } -void MSFilterTracer::SetProperty( const ::rtl::OUString& rPropName, const uno::Any& rProperty ) -{ -mpCfgItem->WriteAny( rPropName, rProperty ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- 1.7.7 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice