[Libreoffice-commits] .: editeng/inc editeng/source svtools/inc svtools/source svx/inc svx/source unusedcode.easy vcl/inc vcl/source

Michael Meeks michael at kemper.freedesktop.org
Sat Feb 18 01:35:52 PST 2012


 editeng/inc/editeng/unoedhlp.hxx                       |    3 -
 editeng/source/uno/unoedhlp.cxx                        |   15 ---------
 svtools/inc/svtools/svtabbx.hxx                        |    1 
 svtools/source/contnr/svtabbx.cxx                      |   12 -------
 svx/inc/svx/svdsob.hxx                                 |    1 
 svx/source/accessibility/GraphCtlAccessibleContext.cxx |   27 -----------------
 svx/source/inc/GraphCtlAccessibleContext.hxx           |    7 ----
 svx/source/svdraw/svdlayer.cxx                         |   24 ---------------
 unusedcode.easy                                        |    9 -----
 vcl/inc/outfont.hxx                                    |    3 -
 vcl/source/gdi/outdev3.cxx                             |   12 -------
 11 files changed, 114 deletions(-)

New commits:
commit 78e9ba6febb7402d4661fbf7934a2526efc8629a
Author: Elton Chung <elton at layerjet.com>
Date:   Sat Feb 18 14:19:49 2012 +0800

    Remove unused code

diff --git a/editeng/inc/editeng/unoedhlp.hxx b/editeng/inc/editeng/unoedhlp.hxx
index 5d8caa6..cb37292 100644
--- a/editeng/inc/editeng/unoedhlp.hxx
+++ b/editeng/inc/editeng/unoedhlp.hxx
@@ -61,9 +61,6 @@ public:
     sal_uLong   GetValue() const;
     sal_uLong   GetStartValue() const;
     sal_uLong   GetEndValue() const;
-    void    SetValue( sal_uLong n );
-    void    SetStartValue( sal_uLong n );
-    void    SetEndValue( sal_uLong n );
 };
 
 /** Helper class for common functionality in edit sources
diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx
index 57d50f0..fb1b033 100644
--- a/editeng/source/uno/unoedhlp.cxx
+++ b/editeng/source/uno/unoedhlp.cxx
@@ -63,21 +63,6 @@ sal_uLong SvxEditSourceHint::GetEndValue() const
     return mnEnd;
 }
 
-void SvxEditSourceHint::SetValue( sal_uLong n )
-{
-    TextHint::SetValue( n );
-}
-
-void SvxEditSourceHint::SetStartValue( sal_uLong n )
-{
-    mnStart = n;
-}
-
-void SvxEditSourceHint::SetEndValue( sal_uLong n )
-{
-    mnEnd = n;
-}
-
 //------------------------------------------------------------------------
 
 ::std::auto_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify* aNotify )
diff --git a/svtools/inc/svtools/svtabbx.hxx b/svtools/inc/svtools/svtabbx.hxx
index 749df91..38aa9c0 100644
--- a/svtools/inc/svtools/svtabbx.hxx
+++ b/svtools/inc/svtools/svtabbx.hxx
@@ -120,7 +120,6 @@ public:
 
     virtual void    Resize();
     void            SetTabJustify( sal_uInt16 nTab, SvTabJustify );
-    SvTabJustify    GetTabJustify( sal_uInt16 nTab ) const;
 };
 
 inline long SvTabListBox::GetTab( sal_uInt16 nTab ) const
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index 8d1ad28..b1b2bd1 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -538,18 +538,6 @@ void SvTabListBox::SetTabJustify( sal_uInt16 nTab, SvTabJustify eJustify)
         Invalidate();
 }
 
-SvTabJustify SvTabListBox::GetTabJustify( sal_uInt16 nTab ) const
-{
-    SvTabJustify eResult = AdjustLeft;
-    if( nTab >= nTabCount )
-        return eResult;
-    SvLBoxTab* pTab = &(pTabList[ nTab ]);
-    sal_uInt16 nFlags = pTab->nFlags;
-    nFlags &= MYTABMASK;
-    eResult = (SvTabJustify)nFlags;
-    return eResult;
-}
-
 long SvTabListBox::GetLogicTab( sal_uInt16 nTab )
 {
     if( SvTreeListBox::nTreeFlags & TREEFLAG_RECALCTABS )
diff --git a/svx/inc/svx/svdsob.hxx b/svx/inc/svx/svdsob.hxx
index 4f7c515..feec79e 100644
--- a/svx/inc/svx/svdsob.hxx
+++ b/svx/inc/svx/svdsob.hxx
@@ -96,7 +96,6 @@ public:
 
     sal_Bool IsEmpty() const;
 
-    sal_uInt16 GetSetCount() const;
     void operator&=(const SetOfByte& r2ndSet);
     void operator|=(const SetOfByte& r2ndSet);
 
diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
index 208106e..43960d3 100644
--- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx
+++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
@@ -735,39 +735,12 @@ void SAL_CALL SvxGraphCtrlAccessibleContext::deselectAccessibleChild( sal_Int32
 
 //=====  internals ========================================================
 
-void SvxGraphCtrlAccessibleContext::checkChildIndex( long nIndex ) throw( lang::IndexOutOfBoundsException )
-{
-    if( nIndex < 0 || nIndex >= getAccessibleChildCount() )
-        throw lang::IndexOutOfBoundsException();
-}
-
-//-----------------------------------------------------------------------------
-
 void SvxGraphCtrlAccessibleContext::checkChildIndexOnSelection( long nIndex ) throw( lang::IndexOutOfBoundsException )
 {
     if( nIndex < 0 || nIndex >= getSelectedAccessibleChildCount() )
         throw lang::IndexOutOfBoundsException();
 }
 
-//-----------------------------------------------------------------------------
-
-void SvxGraphCtrlAccessibleContext::setName( const OUString& rName )
-{
-    ::SolarMutexGuard aGuard;
-
-    msName = rName;
-}
-
-//-----------------------------------------------------------------------------
-
-void SvxGraphCtrlAccessibleContext::setDescription( const OUString& rDescr )
-{
-    ::SolarMutexGuard aGuard;
-
-    msDescription = rDescr;
-}
-
-
 
 
 /** Replace the model, page, and view pointers by the ones provided
diff --git a/svx/source/inc/GraphCtlAccessibleContext.hxx b/svx/source/inc/GraphCtlAccessibleContext.hxx
index e52e486..fe248f4 100644
--- a/svx/source/inc/GraphCtlAccessibleContext.hxx
+++ b/svx/source/inc/GraphCtlAccessibleContext.hxx
@@ -191,17 +191,10 @@ public:
 protected:
     //=====  internals ========================================================
 
-    void checkChildIndex( long nIndexOfChild ) throw (::com::sun::star::lang::IndexOutOfBoundsException );
     void checkChildIndexOnSelection( long nIndexOfChild ) throw (::com::sun::star::lang::IndexOutOfBoundsException );
 
 public:
 
-    /// Sets the name
-    void setName( const ::rtl::OUString& rName );
-
-    /// Sets the description
-    void setDescription( const ::rtl::OUString& rDescr );
-
     /** This method is used by the graph control to tell the
         accessibility object about a new model and view.
     */
diff --git a/svx/source/svdraw/svdlayer.cxx b/svx/source/svdraw/svdlayer.cxx
index f9a3f37..f946fc0 100644
--- a/svx/source/svdraw/svdlayer.cxx
+++ b/svx/source/svdraw/svdlayer.cxx
@@ -48,30 +48,6 @@ sal_Bool SetOfByte::IsEmpty() const
     return sal_True;
 }
 
-sal_uInt16 SetOfByte::GetSetCount() const
-{
-    sal_uInt16 nRet(0);
-
-    for(sal_uInt16 i(0); i < 32; i++)
-    {
-        sal_uInt8 a(aData[i]);
-
-        if(a != 0)
-        {
-            if(a & 0x80) nRet++;
-            if(a & 0x40) nRet++;
-            if(a & 0x20) nRet++;
-            if(a & 0x10) nRet++;
-            if(a & 0x08) nRet++;
-            if(a & 0x04) nRet++;
-            if(a & 0x02) nRet++;
-            if(a & 0x01) nRet++;
-        }
-    }
-
-    return nRet;
-}
-
 void SetOfByte::operator&=(const SetOfByte& r2ndSet)
 {
     for(sal_uInt16 i(0); i < 32; i++)
diff --git a/unusedcode.easy b/unusedcode.easy
index 78c00f0..dcd6b42 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -24,7 +24,6 @@ HTMLControls::Insert(HTMLControls const*, unsigned short, unsigned short)
 HTMLControls::Remove(HTMLControl const*&, unsigned short)
 HTMLControls::Remove(unsigned short, unsigned short)
 ImpSvtData::~ImpSvtData()
-ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale&) const
 InsCapOptArr::Insert(InsCapOptArr const*, unsigned short, unsigned short)
 InsCapOptArr::Insert(InsCaptionOpt* const&, unsigned short&)
 InsCapOptArr::Insert(InsCaptionOpt* const*, unsigned short)
@@ -150,7 +149,6 @@ SectReprArr::Insert(SectReprArr const*, unsigned short, unsigned short)
 SectReprArr::Remove(SectRepr* const&, unsigned short)
 SectReprArr::Remove(unsigned short, unsigned short)
 SecurityEnvironment_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
-SetOfByte::GetSetCount() const
 SfxDockingWrapper::GetChildWindowId()
 SfxFilterPtrArr::DeleteAndDestroy(unsigned short, unsigned short)
 SfxFoundCacheArr_Impl::Insert(SfxFoundCacheArr_Impl const*, unsigned short, unsigned short)
@@ -224,7 +222,6 @@ SvPersistStream::RemoveObj(SvPersistBase*)
 SvPersistStream::SvPersistStream(SvClassManager&, SvStream*, SvPersistStream const&)
 SvPtrarr::Replace(void* const*, unsigned short, unsigned short)
 SvStringsISortDtor::Insert(String* const*, unsigned short)
-SvTabListBox::GetTabJustify(unsigned short) const
 SvUnoAttributeContainer::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
 SvXMLAutoStylePoolNamesP_Impl::GetPos(rtl::OUString const*) const
 SvXMLAutoStylePoolNamesP_Impl::Remove(rtl::OUString*)
@@ -293,15 +290,9 @@ SvxDoCapitals::Do(String const&, unsigned short, unsigned short, unsigned char)
 SvxDrawOutlinerViewForwarder::SetShapePos(Point const&)
 SvxDrawPage::SvxDrawPage()
 SvxEditSourceHelper::UserSpaceToEE(Rectangle const&, Size const&, bool)
-SvxEditSourceHint::SetEndValue(unsigned long)
-SvxEditSourceHint::SetStartValue(unsigned long)
-SvxEditSourceHint::SetValue(unsigned long)
 SvxFont::DrawText(OutputDevice*, Point const&, String const&, unsigned short, unsigned short) const
 SvxFrameDirectionItem::SvxFrameDirectionItem(unsigned short)
 SvxGrafToolBoxControl::RegisterControl(unsigned short, SfxModule*)
-SvxGraphCtrlAccessibleContext::checkChildIndex(long)
-SvxGraphCtrlAccessibleContext::setDescription(rtl::OUString const&)
-SvxGraphCtrlAccessibleContext::setName(rtl::OUString const&)
 SvxIMapDlg::GetTargetList() const
 SvxInsertStatusBarControl::GetDefItemWidth(StatusBar const&)
 SvxJustifyMethodItem::SvxJustifyMethodItem(unsigned short)
diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx
index 75871da..9acb296 100644
--- a/vcl/inc/outfont.hxx
+++ b/vcl/inc/outfont.hxx
@@ -228,9 +228,6 @@ public:
     ImplGetDevFontList*     GetDevFontList() const;
     ImplGetDevSizeList*     GetDevSizeList( const String& rFontName ) const;
 
-    //used by 2-level font fallback
-    ImplDevFontListData* ImplFindByLocale( com::sun::star::lang::Locale& ) const;
-
 protected:
     void                    InitMatchData() const;
     bool                    AreMapNamesAvailable() const { return mbMapNames; }
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 4c0123f..598823e 100755
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -1668,18 +1668,6 @@ void ImplDevFontList::InitMatchData() const
     }
 }
 
-//----------------------------------------------------------------------------
-ImplDevFontListData* ImplDevFontList::ImplFindByLocale( com::sun::star::lang::Locale& rLocale ) const
-{
-    // get the default font for a specified locale
-    const DefaultFontConfiguration& rDefaults = DefaultFontConfiguration::get();
-    const String aDefault = rDefaults.getUserInterfaceFont( rLocale );
-    ImplDevFontListData* pFontData = ImplFindByTokenNames( aDefault );
-    if( pFontData )
-        return pFontData;
-    return NULL;
-}
-
 // -----------------------------------------------------------------------
 
 ImplDevFontListData* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType,


More information about the Libreoffice-commits mailing list