Kaydet (Commit) 78e9ba6f authored tarafından Elton Chung's avatar Elton Chung Kaydeden (comit) Michael Meeks

Remove unused code

üst ab2f830b
......@@ -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
......
......@@ -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 )
......
......@@ -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
......
......@@ -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 )
......
......@@ -96,7 +96,6 @@ public:
sal_Bool IsEmpty() const;
sal_uInt16 GetSetCount() const;
void operator&=(const SetOfByte& r2ndSet);
void operator|=(const SetOfByte& r2ndSet);
......
......@@ -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
......
......@@ -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.
*/
......
......@@ -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++)
......
......@@ -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)
......
......@@ -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; }
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment