summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-18 14:19:49 +0800
committerMichael Meeks <michael.meeks@suse.com>2012-02-18 09:34:48 +0000
commit78e9ba6febb7402d4661fbf7934a2526efc8629a (patch)
treefb409d64f0006c998c75d26dba37192dbc76e093
parentab2f830bbbb2a8ae2afad13b2a98df553e7196cc (diff)
Remove unused code
-rw-r--r--editeng/inc/editeng/unoedhlp.hxx3
-rw-r--r--editeng/source/uno/unoedhlp.cxx15
-rw-r--r--svtools/inc/svtools/svtabbx.hxx1
-rw-r--r--svtools/source/contnr/svtabbx.cxx12
-rw-r--r--svx/inc/svx/svdsob.hxx1
-rw-r--r--svx/source/accessibility/GraphCtlAccessibleContext.cxx27
-rw-r--r--svx/source/inc/GraphCtlAccessibleContext.hxx7
-rw-r--r--svx/source/svdraw/svdlayer.cxx24
-rwxr-xr-xunusedcode.easy9
-rw-r--r--vcl/inc/outfont.hxx3
-rwxr-xr-xvcl/source/gdi/outdev3.cxx12
11 files changed, 0 insertions, 114 deletions
diff --git a/editeng/inc/editeng/unoedhlp.hxx b/editeng/inc/editeng/unoedhlp.hxx
index 5d8caa616aef..cb3729295e4a 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 57d50f034477..fb1b03322350 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 749df910edc0..38aa9c098471 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 8d1ad28dfeb1..b1b2bd17737f 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 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++)
diff --git a/unusedcode.easy b/unusedcode.easy
index 78c00f0f6d84..dcd6b4281e10 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 75871dac4293..9acb29611b70 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 4c0123f13959..598823e675db 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,