diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-18 14:19:49 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-18 09:34:48 +0000 |
commit | 78e9ba6febb7402d4661fbf7934a2526efc8629a (patch) | |
tree | fb409d64f0006c998c75d26dba37192dbc76e093 /svx | |
parent | ab2f830bbbb2a8ae2afad13b2a98df553e7196cc (diff) |
Remove unused code
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svdsob.hxx | 1 | ||||
-rw-r--r-- | svx/source/accessibility/GraphCtlAccessibleContext.cxx | 27 | ||||
-rw-r--r-- | svx/source/inc/GraphCtlAccessibleContext.hxx | 7 | ||||
-rw-r--r-- | svx/source/svdraw/svdlayer.cxx | 24 |
4 files changed, 0 insertions, 59 deletions
diff --git a/svx/inc/svx/svdsob.hxx b/svx/inc/svx/svdsob.hxx index 4f7c5159babc..feec79ed6375 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 208106e56e96..43960d3e1bed 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 e52e4865997f..fe248f43c6ea 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 f9a3f373b341..f946fc01a90e 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++) |