[Libreoffice-commits] .: 2 commits - filter/source Makefile svx/inc svx/source sw/inc sw/source unotools/inc unotools/source unusedcode.easy vcl/inc vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Feb 10 07:43:21 PST 2012


 Makefile                                                |    1 
 filter/source/msfilter/msfiltertracer.cxx               |    6 ---
 svx/inc/svx/numfmtsh.hxx                                |    2 -
 svx/inc/svx/numinf.hxx                                  |    3 -
 svx/inc/svx/pszctrl.hxx                                 |    2 -
 svx/inc/svx/simptabl.hxx                                |    1 
 svx/inc/svx/zoomctrl.hxx                                |    2 -
 svx/source/accessibility/svxrectctaccessiblecontext.cxx |   32 ----------------
 svx/source/dialog/simptabl.cxx                          |   31 ---------------
 svx/source/inc/svxrectctaccessiblecontext.hxx           |    5 --
 svx/source/items/numfmtsh.cxx                           |   13 ------
 svx/source/items/numinf.cxx                             |   23 -----------
 svx/source/stbctrls/pszctrl.cxx                         |   14 -------
 svx/source/stbctrls/zoomctrl.cxx                        |    6 ---
 sw/inc/calbck.hxx                                       |    1 
 sw/inc/swmodule.hxx                                     |    4 --
 sw/source/core/attr/calbck.cxx                          |   13 ------
 sw/source/ui/app/swmodul1.cxx                           |   20 ----------
 sw/source/ui/docvw/FrameControlsManager.cxx             |    5 --
 sw/source/ui/inc/FrameControlsManager.hxx               |    1 
 sw/source/ui/vba/vbatablehelper.cxx                     |   15 -------
 sw/source/ui/vba/vbatablehelper.hxx                     |    1 
 unotools/inc/unotools/calendarwrapper.hxx               |    2 -
 unotools/inc/unotools/localedatawrapper.hxx             |    2 -
 unotools/inc/unotools/nativenumberwrapper.hxx           |    4 --
 unotools/source/i18n/calendarwrapper.cxx                |   28 --------------
 unotools/source/i18n/localedatawrapper.cxx              |   30 ---------------
 unotools/source/i18n/nativenumberwrapper.cxx            |   18 ---------
 unusedcode.easy                                         |   29 --------------
 vcl/inc/vcl/hatch.hxx                                   |    1 
 vcl/source/gdi/hatch.cxx                                |    9 ----
 31 files changed, 1 insertion(+), 323 deletions(-)

New commits:
commit ea1fa6963d1f45130a3dc3d635e5b37120bf364b
Author: Elton Chung <elton at layerjet.com>
Date:   Fri Feb 10 14:53:32 2012 +0000

    Remove unused code

diff --git a/filter/source/msfilter/msfiltertracer.cxx b/filter/source/msfilter/msfiltertracer.cxx
index e9da59d..51b40d0 100644
--- a/filter/source/msfilter/msfiltertracer.cxx
+++ b/filter/source/msfilter/msfiltertracer.cxx
@@ -180,12 +180,6 @@ void MSFilterTracer::StartElement( const rtl::OUString& rName, uno::Reference< x
         mxHandler->startElement( rName, xAttribs );
 }
 
-void MSFilterTracer::EndElement( const rtl::OUString& rName )
-{
-    if ( mxHandler.is() )
-        mxHandler->endElement( rName );
-}
-
 void MSFilterTracer::Trace( const rtl::OUString& rElement, const rtl::OUString& rMessage )
 {
     if ( mbEnabled && mxLogger.is() )
diff --git a/svx/inc/svx/numfmtsh.hxx b/svx/inc/svx/numfmtsh.hxx
index 850b46d..d6005ab 100644
--- a/svx/inc/svx/numfmtsh.hxx
+++ b/svx/inc/svx/numfmtsh.hxx
@@ -171,12 +171,10 @@ public:
     String              GetFormat4Entry(short nEntry);
     void                SetComment4Entry(short nEntry,String aCommentString);
 
-    bool                IsBankingSymbol(sal_uInt16 nPos);
     void                SetCurrencySymbol(sal_uInt16 nPos);
     sal_uInt32          GetCurrencySymbol();
     sal_uInt16          FindCurrencyFormat( const String& rFmtString );
     sal_uInt16          FindCurrencyFormat(const NfCurrencyEntry* pTmpCurrencyEntry,bool bTmpBanking);
-    NfCurrencyEntry*    GetCurCurrencyEntry();
     void                SetCurCurrencyEntry(NfCurrencyEntry*);
     short               GetListPos4Entry(sal_uInt32 nIdx);
     short               GetListPos4Entry( const String& rFmtString );
diff --git a/svx/inc/svx/numinf.hxx b/svx/inc/svx/numinf.hxx
index 32b021f..1b0e971 100644
--- a/svx/inc/svx/numinf.hxx
+++ b/svx/inc/svx/numinf.hxx
@@ -71,11 +71,8 @@ public:
                                     String &rText, const IntlWrapper * = 0 ) const;
 
     SvNumberFormatter*      GetNumberFormatter() const { return pFormatter; }
-    void                    SetNumberFormatter( SvNumberFormatter* pNumFrmt );
     const String&           GetValueString() const { return aStringVal; }
-    void                    SetStringValue( const String& rNewVal );
     double                  GetValueDouble() const  { return nDoubleVal; }
-    void                    SetDoubleValue( const double& rNewVal );
 
     const sal_uInt32*       GetDelArray() const { return pDelFormatArr; }
     void                    SetDelFormatArray( const sal_uInt32* pData,
diff --git a/svx/inc/svx/pszctrl.hxx b/svx/inc/svx/pszctrl.hxx
index 918cf88..1cbe54d 100644
--- a/svx/inc/svx/pszctrl.hxx
+++ b/svx/inc/svx/pszctrl.hxx
@@ -54,8 +54,6 @@ public:
     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
     virtual void    Paint( const UserDrawEvent& rEvt );
     virtual void    Command( const CommandEvent& rCEvt );
-
-    static sal_uIntPtr  GetDefItemWidth( const StatusBar& rStb );
 };
 
 
diff --git a/svx/inc/svx/simptabl.hxx b/svx/inc/svx/simptabl.hxx
index b15a485..1340b0b 100644
--- a/svx/inc/svx/simptabl.hxx
+++ b/svx/inc/svx/simptabl.hxx
@@ -101,7 +101,6 @@ protected:
 public:
 
     SvxSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER);
-    SvxSimpleTable(SvxSimpleTableContainer& rParent, const ResId&);
     ~SvxSimpleTable();
 
     void UpdateViewSize();
diff --git a/svx/inc/svx/zoomctrl.hxx b/svx/inc/svx/zoomctrl.hxx
index d45f071..e273092 100644
--- a/svx/inc/svx/zoomctrl.hxx
+++ b/svx/inc/svx/zoomctrl.hxx
@@ -51,8 +51,6 @@ public:
 
     SvxZoomStatusBarControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
 
-    static  sal_uIntPtr GetDefItemWidth(const StatusBar& rStb);
-
 };
 
 
diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
index fa57706..703cc77 100644
--- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
@@ -672,38 +672,6 @@ void SvxRectCtlAccessibleContext::selectChild( RECT_POINT eButton )
     selectChild( PointToIndex( eButton, mbAngleMode ) );
 }
 
-void SvxRectCtlAccessibleContext::setName( const ::rtl::OUString& rName )
-{
-    Any                     aPreVal, aPostVal;
-    {
-        ::osl::MutexGuard   aGuard( m_aMutex );
-
-        aPreVal <<= msName;
-        aPostVal <<= rName;
-
-        msName = rName;
-    }
-
-    const Reference< XInterface >   xSource( *this );
-    CommitChange( AccessibleEventObject( xSource, AccessibleEventId::NAME_CHANGED, aPreVal, aPostVal ) );
-}
-
-void SvxRectCtlAccessibleContext::setDescription( const ::rtl::OUString& rDescr )
-{
-    Any                     aPreVal, aPostVal;
-    {
-        ::osl::MutexGuard   aGuard( m_aMutex );
-
-        aPreVal <<= msDescription;
-        aPostVal <<= rDescr;
-
-        msDescription = rDescr;
-    }
-
-    const Reference< XInterface >   xSource( *this );
-    CommitChange( AccessibleEventObject( xSource, AccessibleEventId::DESCRIPTION_CHANGED, aPreVal, aPostVal ) );
-}
-
 void SvxRectCtlAccessibleContext::CommitChange( const AccessibleEventObject& rEvent )
 {
     if (mnClientId)
diff --git a/svx/source/dialog/simptabl.cxx b/svx/source/dialog/simptabl.cxx
index e3b0aa5..d33c625 100644
--- a/svx/source/dialog/simptabl.cxx
+++ b/svx/source/dialog/simptabl.cxx
@@ -108,37 +108,6 @@ SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits):
     SvHeaderTabListBox::Show();
 }
 
-SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer& rParent,const ResId& rResId):
-        SvHeaderTabListBox(&rParent,rResId),
-        m_rParentTableContainer(rParent),
-        aHeaderBar(&rParent,WB_BUTTONSTYLE | WB_BORDER  | WB_TABSTOP),
-        nHeaderItemId(1),
-        bResizeFlag(sal_True),
-        bPaintFlag(sal_True)
-{
-    SetStyle(GetStyle()|WB_CLIPCHILDREN | WB_HSCROLL | WB_TABSTOP),
-    m_rParentTableContainer.SetTable(this);
-
-    bSortDirection=sal_True;
-    nOldPos=0;
-    nSortCol=0xFFFF;
-
-    aHeaderBar.SetStartDragHdl(LINK( this, SvxSimpleTable, StartDragHdl));
-    aHeaderBar.SetDragHdl(LINK( this, SvxSimpleTable, DragHdl));
-    aHeaderBar.SetEndDragHdl(LINK( this, SvxSimpleTable, EndDragHdl));
-    aHeaderBar.SetSelectHdl(LINK( this, SvxSimpleTable, HeaderBarClick));
-    aHeaderBar.SetDoubleClickHdl(LINK( this, SvxSimpleTable, HeaderBarDblClick));
-
-    UpdateViewSize();
-
-    EnableCellFocus();
-    DisableTransientChildren();
-    InitHeaderBar( &aHeaderBar );
-
-    aHeaderBar.Show();
-    SvHeaderTabListBox::Show();
-}
-
 SvxSimpleTable::~SvxSimpleTable()
 {
 }
diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx
index d5dd920..cee795b 100644
--- a/svx/source/inc/svxrectctaccessiblecontext.hxx
+++ b/svx/source/inc/svxrectctaccessiblecontext.hxx
@@ -265,11 +265,6 @@ public:
     */
     void selectChild( RECT_POINT ePoint );
 
-    /// Sets the name
-    void setName( const ::rtl::OUString& rName );
-
-    /// Sets the description
-    void setDescription( const ::rtl::OUString& rDescr );
 private:
     static ::com::sun::star::uno::Sequence< sal_Int8 > getUniqueId( void );
 protected:
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx
index d3fe22d..d696123 100644
--- a/svx/source/items/numfmtsh.cxx
+++ b/svx/source/items/numfmtsh.cxx
@@ -1618,14 +1618,6 @@ void SvxNumberFormatShell::GetCurrencySymbols(std::vector<rtl::OUString>& rList,
     delete pLanguageTable;
 }
 
-bool SvxNumberFormatShell::IsBankingSymbol(sal_uInt16 nPos)
-{
-    const NfCurrencyTable& rCurrencyTable=SvNumberFormatter::GetTheCurrencyTable();
-    sal_uInt16 nCount=rCurrencyTable.Count();
-
-    return (nPos>nCount);
-}
-
 void SvxNumberFormatShell::SetCurrencySymbol(sal_uInt16 nPos)
 {
     const NfCurrencyTable& rCurrencyTable=SvNumberFormatter::GetTheCurrencyTable();
@@ -1656,11 +1648,6 @@ sal_uInt32 SvxNumberFormatShell::GetCurrencySymbol()
     return nCurCurrencyEntryPos;
 }
 
-NfCurrencyEntry* SvxNumberFormatShell::GetCurCurrencyEntry()
-{
-    return pCurCurrencyEntry;
-}
-
 void SvxNumberFormatShell::SetCurCurrencyEntry(NfCurrencyEntry* pCEntry)
 {
     pCurCurrencyEntry=pCEntry;
diff --git a/svx/source/items/numinf.cxx b/svx/source/items/numinf.cxx
index 6e5f89e..9401e00 100644
--- a/svx/source/items/numinf.cxx
+++ b/svx/source/items/numinf.cxx
@@ -200,29 +200,6 @@ SvStream& SvxNumberInfoItem::Store( SvStream &rStream, sal_uInt16 /*nItemVersion
 
 // -----------------------------------------------------------------------
 
-void SvxNumberInfoItem::SetNumberFormatter( SvNumberFormatter* pNumFormatter )
-{
-    pFormatter = pNumFormatter;
-}
-
-// -----------------------------------------------------------------------
-
-void SvxNumberInfoItem::SetStringValue( const String& rNewVal )
-{
-    aStringVal = rNewVal;
-    eValueType = SVX_VALUE_TYPE_STRING;
-}
-
-// -----------------------------------------------------------------------
-
-void SvxNumberInfoItem::SetDoubleValue( const double& rNewVal )
-{
-    nDoubleVal = rNewVal;
-    eValueType = SVX_VALUE_TYPE_NUMBER;
-}
-
-// -----------------------------------------------------------------------
-
 void SvxNumberInfoItem::SetDelFormatArray( const sal_uInt32* pData,
                                            const sal_uInt32 nCount )
 {
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index a912fa5..9c8a3e3 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -425,19 +425,5 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt )
     pDev->SetFillColor( aOldFillColor );
 }
 
-// -----------------------------------------------------------------------
-
-sal_uIntPtr SvxPosSizeStatusBarControl::GetDefItemWidth(const StatusBar& rStb)
-{
-    Image aTmpPosImage( ResId( RID_SVXBMP_POSITION, DIALOG_MGR() ) );
-    Image aTmpSizeImage( ResId( RID_SVXBMP_SIZE, DIALOG_MGR() ) );
-
-    sal_uIntPtr nWidth=PAINT_OFFSET+aTmpPosImage.GetSizePixel().Width();
-    nWidth+=PAINT_OFFSET+aTmpSizeImage.GetSizePixel().Width();
-    nWidth+=2*(PAINT_OFFSET+rStb.GetTextWidth(String::CreateFromAscii("XXXX,XX / XXXX,XX")));
-
-    return nWidth;
-}
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index 835911b..1284075 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -192,11 +192,5 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt )
         SfxStatusBarControl::Command( rCEvt );
 }
 
-sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb)
-{
-    long nWidth1 =  rStb.GetTextWidth(String::CreateFromAscii("XXXXX%"));
-    return nWidth1;
-}
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 09d6fcb..e962d56 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -179,7 +179,6 @@ public:
 
     void CheckCaching( const sal_uInt16 nWhich );
     bool IsLastDepend() { return pRoot && pRoot->IsLast(); }
-    int GetClientCount() const;
 };
 
 // ----------
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index 72f026a..64584f5 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -207,13 +207,9 @@ public:
     const Color&            GetRedlineMarkColor();
 
     SvxCompareMode      GetCompareMode() const;
-    void                SetCompareMode( SvxCompareMode eMode );
     sal_Bool            IsUseRsid() const;
-    void                SetUseRsid( sal_Bool b );
     sal_Bool            IsIgnorePieces() const;
-    void				SetIgnorePieces( sal_Bool b );
     sal_uInt16          GetPieceLen() const;
-    void                SetPieceLen( sal_uInt16 nLen );
 
     // Return defined DocStat - WordDelimiter.
     const String&       GetDocStatWordDelim() const;
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index 76aaa46..6d63fb0 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -312,19 +312,6 @@ SwClient* SwModify::Remove(SwClient * pDepend)
     return pDepend;
 }
 
-int SwModify::GetClientCount() const
-{
-    int nRet=0;
-    SwClientIter aIter( *this );
-    SwClient *pLast = aIter.GoStart();
-    if( pLast )
-        do
-        {
-            ++nRet;
-        } while( 0 != ( pLast = aIter++ ));
-    return nRet;
-}
-
 void SwModify::CheckCaching( const sal_uInt16 nWhich )
 {
     if (isCHRATR(nWhich))
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index 3998e42..2ed478e 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -660,39 +660,19 @@ SvxCompareMode SwModule::GetCompareMode() const
     return pModuleConfig->GetCompareMode();
 }
 
-void SwModule::SetCompareMode( SvxCompareMode eMode )
-{
-    pModuleConfig->SetCompareMode( eMode );
-}
-
 sal_Bool SwModule::IsUseRsid() const
 {
     return pModuleConfig->IsUseRsid();
 }
 
-void SwModule::SetUseRsid( sal_Bool b )
-{
-    pModuleConfig->SetUseRsid( b );
-}
-
 sal_Bool SwModule::IsIgnorePieces() const
 {
     return pModuleConfig->IsIgnorePieces();
 }
 
-void SwModule::SetIgnorePieces( sal_Bool b )
-{
-    pModuleConfig->SetIgnorePieces( b );
-}
-
 sal_uInt16 SwModule::GetPieceLen() const
 {
     return pModuleConfig->GetPieceLen();
 }
 
-void SwModule::SetPieceLen( sal_uInt16 nLen )
-{
-    pModuleConfig->SetPieceLen( nLen );
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/docvw/FrameControlsManager.cxx b/sw/source/ui/docvw/FrameControlsManager.cxx
index b262132..cd76e72 100644
--- a/sw/source/ui/docvw/FrameControlsManager.cxx
+++ b/sw/source/ui/docvw/FrameControlsManager.cxx
@@ -98,11 +98,6 @@ SwFrameControlPtr SwFrameControlsManager::GetControl( FrameControlType eType, co
     return pControl;
 }
 
-std::vector< SwFrameControlPtr >& SwFrameControlsManager::GetControls( FrameControlType eType )
-{
-    return m_aControls[eType];
-}
-
 void SwFrameControlsManager::AddControl( FrameControlType eType, SwFrameControlPtr pControl )
 {
     m_aControls[eType].push_back( pControl );
diff --git a/sw/source/ui/inc/FrameControlsManager.hxx b/sw/source/ui/inc/FrameControlsManager.hxx
index 06e618c..5ae6c73 100644
--- a/sw/source/ui/inc/FrameControlsManager.hxx
+++ b/sw/source/ui/inc/FrameControlsManager.hxx
@@ -58,7 +58,6 @@ class SwFrameControlsManager
         const SwFrameControlsManager& operator=( const SwFrameControlsManager& rCopy );
 
         SwFrameControlPtr GetControl( FrameControlType eType, const SwFrm* pFrm );
-        std::vector< SwFrameControlPtr >& GetControls( FrameControlType eType );
         void AddControl( FrameControlType eType, SwFrameControlPtr pControl );
         void RemoveControls( const SwFrm* pFrm );
         void RemoveControlsByType( FrameControlType eType, const SwFrm* pFrm );
diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx
index de37466..d07225b 100644
--- a/sw/source/ui/vba/vbatablehelper.cxx
+++ b/sw/source/ui/vba/vbatablehelper.cxx
@@ -146,21 +146,6 @@ sal_Int32 SwVbaTableHelper::getTableWidth( ) throw (uno::RuntimeException)
     return nWidth;
 }
 
-void SwVbaTableHelper::setTableWidth( sal_Int32 _width ) throw (uno::RuntimeException)
-{
-    sal_Bool isWidthRelatvie = sal_False;
-    uno::Reference< beans::XPropertySet > xTableProps( mxTextTable, uno::UNO_QUERY_THROW );
-    xTableProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("IsWidthRelative") ) ) >>= isWidthRelatvie;
-    if( isWidthRelatvie )
-    {
-        xTableProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("RelativeWidth") ), uno::makeAny( _width ));
-    }
-    else
-    {
-        xTableProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ), uno::makeAny( _width ) );
-    }
-}
-
 SwTableBox* SwVbaTableHelper::GetTabBox( sal_Int32 nCol, sal_Int32 nRow ) throw (css::uno::RuntimeException)
 {
     SwTableLines& rLines = pTable->GetTabLines();
diff --git a/sw/source/ui/vba/vbatablehelper.hxx b/sw/source/ui/vba/vbatablehelper.hxx
index 0dcd630..72fc09b 100644
--- a/sw/source/ui/vba/vbatablehelper.hxx
+++ b/sw/source/ui/vba/vbatablehelper.hxx
@@ -56,7 +56,6 @@ public:
     sal_Int32 getTabRowIndex( const rtl::OUString& sCellName ) throw (css::uno::RuntimeException);
     sal_Int32 getTabColIndex( const rtl::OUString& sCellName ) throw (css::uno::RuntimeException);
     sal_Int32 getTableWidth( ) throw (css::uno::RuntimeException);
-    void  setTableWidth( sal_Int32 _width ) throw (css::uno::RuntimeException);
 
     sal_Int32 GetColWidth( sal_Int32 nCol, sal_Int32 nRow = 0, sal_Bool bCurRowOnly  = sal_False ) throw (css::uno::RuntimeException);
     void SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32 nRow = 0, sal_Bool bCurRowOnly  = sal_False ) throw (css::uno::RuntimeException);
diff --git a/unotools/inc/unotools/calendarwrapper.hxx b/unotools/inc/unotools/calendarwrapper.hxx
index bab43e9..26c370c 100644
--- a/unotools/inc/unotools/calendarwrapper.hxx
+++ b/unotools/inc/unotools/calendarwrapper.hxx
@@ -87,8 +87,6 @@ public:
     sal_Int16 getValue( sal_Int16 nFieldIndex ) const;
     void addValue( sal_Int16 nFieldIndex, sal_Int32 nAmount );
     sal_Int16 getFirstDayOfWeek() const;
-    void setFirstDayOfWeek( sal_Int16 nDay );
-    void setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays );
     sal_Int16 getNumberOfMonthsInYear() const;
     sal_Int16 getNumberOfDaysInWeek() const;
     String getDisplayName( sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType ) const;
diff --git a/unotools/inc/unotools/localedatawrapper.hxx b/unotools/inc/unotools/localedatawrapper.hxx
index 2f4186f..14ba39e 100644
--- a/unotools/inc/unotools/localedatawrapper.hxx
+++ b/unotools/inc/unotools/localedatawrapper.hxx
@@ -158,8 +158,6 @@ public:
     /// NOTE: this wraps XLocaleData2::getAllCurrencies2() in fact.
     ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Currency2 > getAllCurrencies() const;
     ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::FormatElement > getAllFormats() const;
-    ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > getCollatorImplementations() const;
-    ::com::sun::star::uno::Sequence< ::rtl::OUString > getTransliterations() const;
     ::com::sun::star::i18n::ForbiddenCharacters getForbiddenCharacters() const;
     ::com::sun::star::uno::Sequence< ::rtl::OUString > getReservedWord() const;
     ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > getAllInstalledLocaleNames() const;
diff --git a/unotools/inc/unotools/nativenumberwrapper.hxx b/unotools/inc/unotools/nativenumberwrapper.hxx
index 99acc41..b6c589f 100644
--- a/unotools/inc/unotools/nativenumberwrapper.hxx
+++ b/unotools/inc/unotools/nativenumberwrapper.hxx
@@ -60,10 +60,6 @@ public:
                         const ::com::sun::star::lang::Locale& rLocale,
                         sal_Int16 nNativeNumberMode ) const;
 
-    sal_Bool        isValidNatNum(
-                        const ::com::sun::star::lang::Locale& rLocale,
-                        sal_Int16 nNativeNumberMode ) const;
-
     ::com::sun::star::i18n::NativeNumberXmlAttributes convertToXmlAttributes(
                         const ::com::sun::star::lang::Locale& rLocale,
                         sal_Int16 nNativeNumberMode ) const;
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx
index 23390f9..ad78142 100644
--- a/unotools/source/i18n/calendarwrapper.cxx
+++ b/unotools/source/i18n/calendarwrapper.cxx
@@ -333,34 +333,6 @@ sal_Int16 CalendarWrapper::getFirstDayOfWeek() const
 }
 
 
-void CalendarWrapper::setFirstDayOfWeek( sal_Int16 nDay )
-{
-    try
-    {
-        if ( xC.is() )
-            xC->setFirstDayOfWeek( nDay );
-    }
-    catch (const Exception& e)
-    {
-        SAL_WARN( "unotools.i18n", "setFirstDayOfWeek: Exception caught " << e.Message );
-    }
-}
-
-
-void CalendarWrapper::setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays )
-{
-    try
-    {
-        if ( xC.is() )
-            xC->setMinimumNumberOfDaysForFirstWeek( nDays );
-    }
-    catch (const Exception& e)
-    {
-        SAL_WARN( "unotools.i18n", "setMinimumNumberOfDaysForFirstWeek: Exception caught " << e.Message );
-    }
-}
-
-
 sal_Int16 CalendarWrapper::getNumberOfMonthsInYear() const
 {
     try
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index 12aa78d..9d55ce3 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -198,36 +198,6 @@ void LocaleDataWrapper::invalidateData()
 }
 
 
-::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > LocaleDataWrapper::getCollatorImplementations() const
-{
-    try
-    {
-        if ( xLD.is() )
-            return xLD->getCollatorImplementations( getLocale() );
-    }
-    catch (const Exception& e)
-    {
-        SAL_WARN( "unotools.i18n", "getCollatorImplementations: Exception caught " << e.Message );
-    }
-    return ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation >(0);
-}
-
-
-::com::sun::star::uno::Sequence< ::rtl::OUString > LocaleDataWrapper::getTransliterations() const
-{
-    try
-    {
-        if ( xLD.is() )
-            return xLD->getTransliterations( getLocale() );
-    }
-    catch (const Exception& e)
-    {
-        SAL_WARN( "unotools.i18n", "getTransliterations: Exception caught " << e.Message );
-    }
-    return ::com::sun::star::uno::Sequence< ::rtl::OUString >(0);
-}
-
-
 ::com::sun::star::i18n::ForbiddenCharacters LocaleDataWrapper::getForbiddenCharacters() const
 {
     try
diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx
index d956355..1f1c682 100644
--- a/unotools/source/i18n/nativenumberwrapper.cxx
+++ b/unotools/source/i18n/nativenumberwrapper.cxx
@@ -70,24 +70,6 @@ NativeNumberWrapper::getNativeNumberString(
 }
 
 
-sal_Bool
-NativeNumberWrapper::isValidNatNum(
-                    const ::com::sun::star::lang::Locale& rLocale,
-                    sal_Int16 nNativeNumberMode ) const
-{
-    try
-    {
-        if ( xNNS.is() )
-            return xNNS->isValidNatNum( rLocale, nNativeNumberMode );
-    }
-    catch ( const uno::Exception& )
-    {
-        SAL_WARN( "unotools.i18n", "isValidNatNum: Exception caught!" );
-    }
-    return sal_False;
-}
-
-
 i18n::NativeNumberXmlAttributes
 NativeNumberWrapper::convertToXmlAttributes(
                     const ::com::sun::star::lang::Locale& rLocale,
diff --git a/unusedcode.easy b/unusedcode.easy
index ba8767f..6fb76fa 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -13,19 +13,11 @@ ByteString::SearchAndReplaceAll(char const*, ByteString const&)
 ByteString::SearchBackward(char, unsigned short) const
 ByteString::SetToken(unsigned short, char, ByteString const&, unsigned short)
 ByteString::ToUpperAscii()
-CalendarWrapper::setFirstDayOfWeek(short)
-CalendarWrapper::setMinimumNumberOfDaysForFirstWeek(short)
 CertificateExtension_XmlSecImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)
 CharPosArray::Insert(CharPosArray const*, unsigned short, unsigned short, unsigned short)
 CharPosArray::Replace(int const&, unsigned short)
 CharPosArray::Replace(int const*, unsigned short, unsigned short)
 CharPosArray::_ForEach(unsigned short, unsigned short, unsigned char (*)(int const&, void*), void*)
-DdeGetPutItem::DdeGetPutItem(DdeItem const&)
-DdeService::AddFormat(unsigned long)
-DdeService::AddTopic(DdeTopic const&)
-DdeService::DdeService(String const&)
-DdeTopic::DdeTopic(String const&)
-DdeTopic::RemoveItem(DdeItem const&)
 DffPropSet::SetPropertyValue(unsigned int, unsigned int) const
 Dialog::Dialog(Window*, ResId const&)
 EditView::GetSelectionMode() const
@@ -56,7 +48,6 @@ HTMLControls::Insert(HTMLControl const**, unsigned short)
 HTMLControls::Insert(HTMLControls const*, unsigned short, unsigned short)
 HTMLControls::Remove(HTMLControl const*&, unsigned short)
 HTMLControls::Remove(unsigned short, unsigned short)
-Hatch::SetStyle(HatchStyle)
 ImageButton::ImageButton(unsigned short)
 ImageMap::GetBoundRect() const
 ImpSvMEdit::SetInsertMode(unsigned char)
@@ -72,8 +63,6 @@ InsCapOptArr::Remove(unsigned short, unsigned short)
 ItemList::FindAttrib(unsigned short)
 KeyboardSettings::CopyData()
 LngSvcMgr::RemoveLngSvcEvtBroadcaster(com::sun::star::uno::Reference<com::sun::star::linguistic2::XLinguServiceEventBroadcaster> const&)
-LocaleDataWrapper::getCollatorImplementations() const
-LocaleDataWrapper::getTransliterations() const
 MSDffImportRecords::Insert(MSDffImportRecords const*, unsigned short, unsigned short)
 MSDffImportRecords::Insert(SvxMSDffImportRec* const&, unsigned short&)
 MSDffImportRecords::Insert(SvxMSDffImportRec* const*, unsigned short)
@@ -102,7 +91,6 @@ MultiLineEdit::GetTextLines() const
 MultiLineEdit::IsFocusSelectionHideEnabled() const
 MultiSelection::Append(long)
 MultiSelection::PrevSelected()
-NativeNumberWrapper::isValidNatNum(com::sun::star::lang::Locale const&, short) const
 NfCurrencyEntry::NfCurrencyEntry()
 NotificationSettings::CopyData()
 NumberFormatCodeWrapper::getDefault(short, short) const
@@ -411,17 +399,9 @@ SvxMSDffShapeTxBxSort::Insert(SvxMSDffShapeTxBxSort const*, unsigned short, unsi
 SvxMSDffShapeTxBxSort::Remove(SvxMSDffShapeOrder* const&, unsigned short)
 SvxMSDffShapeTxBxSort::Remove(unsigned short, unsigned short)
 SvxNumRule::SetLevel(unsigned short, SvxNumberFormat const*)
-SvxNumberFormatShell::GetCurCurrencyEntry()
-SvxNumberFormatShell::IsBankingSymbol(unsigned short)
-SvxNumberInfoItem::SetDoubleValue(double const&)
-SvxNumberInfoItem::SetNumberFormatter(SvNumberFormatter*)
-SvxNumberInfoItem::SetStringValue(String const&)
 SvxOpenGraphicDialog::SetControlHelpIds(short const*, char const**)
 SvxPluginFileDlg::IsAvailable(unsigned short)
 SvxPopupWindowListBox::StartSelection()
-SvxPosSizeStatusBarControl::GetDefItemWidth(StatusBar const&)
-SvxRectCtlAccessibleContext::setDescription(rtl::OUString const&)
-SvxRectCtlAccessibleContext::setName(rtl::OUString const&)
 SvxRelativeField::SvxRelativeField(Window*, long)
 SvxReloadControllerItem::RegisterControl(unsigned short, SfxModule*)
 SvxRubyChildWindow::GetChildWindowId()
@@ -431,7 +411,6 @@ SvxSearchDialog::GetSearchItems(SfxItemSet&)
 SvxSearchDialog::SvxSearchDialog(Window*, SfxBindings&)
 SvxSelectionModeControl::GetDefItemWidth(StatusBar const&)
 SvxShapeText::SvxShapeText()
-SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer&, ResId const&)
 SvxTabStopArr::Insert(SvxTabStop const&, unsigned short&)
 SvxTabStopArr::Insert(SvxTabStop const*, unsigned short)
 SvxTabStopArr::Remove(SvxTabStop const&, unsigned short)
@@ -441,7 +420,6 @@ SvxTabStopArr_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(Sv
 SvxUnoTextBase::InsertField(SvxFieldItem const&)
 SvxUnoTextBase::SvxUnoTextBase(SvxEditSource const*, SvxItemPropertySet const*)
 SvxUnoTextContent::SvxUnoTextContent()
-SvxZoomStatusBarControl::GetDefItemWidth(StatusBar const&)
 SwAttrIter::Dump(SvStream&) const
 SwBlinkList::Insert(SwBlinkList const*, unsigned short, unsigned short)
 SwBlinkList::Insert(SwBlinkPortion* const&, unsigned short&)
@@ -474,7 +452,6 @@ SwDestroyList::Insert(SwSectionFrm* const*, unsigned short)
 SwDestroyList::Remove(SwSectionFrm* const&, unsigned short)
 SwFilterDetect::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
 SwFldDataOnlyDlgWrapper::GetChildWindowId()
-SwFrameControlsManager::GetControls(FrameControlType)
 SwGlblDocContents::Insert(SwGlblDocContent* const&, unsigned short&)
 SwGlblDocContents::Insert(SwGlblDocContent* const*, unsigned short)
 SwGlblDocContents::Insert(SwGlblDocContents const*, unsigned short, unsigned short)
@@ -498,11 +475,6 @@ SwLRects::Replace(SwLineRect const&, unsigned short)
 SwLRects::Replace(SwLineRect const*, unsigned short, unsigned short)
 SwLRects::_ForEach(unsigned short, unsigned short, unsigned char (*)(SwLineRect const&, void*), void*)
 SwMailMergeChildWindow::GetChildWindowId()
-SwModify::GetClientCount() const
-SwModule::SetCompareMode(SvxCompareMode)
-SwModule::SetIgnorePieces(unsigned char)
-SwModule::SetPieceLen(unsigned short)
-SwModule::SetUseRsid(unsigned char)
 SwOutlineNodes::Insert(SwNode* const&, unsigned short&)
 SwOutlineNodes::Insert(SwNode* const*, unsigned short)
 SwOutlineNodes::Insert(SwOutlineNodes const*, unsigned short, unsigned short)
@@ -546,7 +518,6 @@ SwTableSortBoxes::DeleteAndDestroy(unsigned short, unsigned short)
 SwTableSortBoxes::Insert(SwTableBox* const&, unsigned short&)
 SwTableSortBoxes::Insert(SwTableBox* const*, unsigned short)
 SwTxtFly::ShowContour(OutputDevice*)
-SwVbaTableHelper::setTableWidth(int)
 SwWriteTableCols::Insert(SwWriteTableCol* const&, unsigned short&)
 SwWriteTableCols::Insert(SwWriteTableCol* const*, unsigned short)
 SwWriteTableCols::Insert(SwWriteTableCols const*, unsigned short, unsigned short)
diff --git a/vcl/inc/vcl/hatch.hxx b/vcl/inc/vcl/hatch.hxx
index 9477402..a1896a4 100644
--- a/vcl/inc/vcl/hatch.hxx
+++ b/vcl/inc/vcl/hatch.hxx
@@ -78,7 +78,6 @@ public:
     sal_Bool            operator!=( const Hatch& rHatch ) const { return !(Hatch::operator==( rHatch ) ); }
     sal_Bool            IsSameInstance( const Hatch& rHatch ) const { return( mpImplHatch == rHatch.mpImplHatch ); }
 
-    void            SetStyle( HatchStyle eStyle );
     HatchStyle      GetStyle() const { return mpImplHatch->meStyle; }
 
     void            SetColor( const Color& rColor  );
diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index 7b8b682..d834c9e 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -144,15 +144,6 @@ void Hatch::ImplMakeUnique()
 
 // -----------------------------------------------------------------------
 
-void Hatch::SetStyle( HatchStyle eStyle )
-{
-    DBG_CHKTHIS( Hatch, NULL );
-    ImplMakeUnique();
-    mpImplHatch->meStyle = eStyle;
-}
-
-// -----------------------------------------------------------------------
-
 void Hatch::SetColor( const Color& rColor )
 {
     DBG_CHKTHIS( Hatch, NULL );
commit 4e022ca124bbedfc6464f67edd11f3edd51d24e8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Feb 10 14:49:53 2012 +0000

    filter out Dde* cause they're not easy

diff --git a/Makefile b/Makefile
index 40779dd..937fea2 100644
--- a/Makefile
+++ b/Makefile
@@ -435,6 +435,7 @@ findunusedcode:
               | grep -v ^boost:: \
               | grep -v ^CIcc \
               | grep -v ^cppu:: \
+              | grep -v ^Dde \
               | grep -v ^salhelper:: \
               > unusedcode.easy
 


More information about the Libreoffice-commits mailing list