Kaydet (Commit) a8a35602 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused code SvTreeListBox::SearchEntryText(SvTreeListEntry*)

Change-Id: I18d76de5e3280e7efb4dd75bcd5bf819064176e3
üst f45ff6b4
...@@ -658,7 +658,6 @@ public: ...@@ -658,7 +658,6 @@ public:
void SetCollapsedEntryBmp( SvTreeListEntry* _pEntry, const Image& _rImage ); void SetCollapsedEntryBmp( SvTreeListEntry* _pEntry, const Image& _rImage );
virtual OUString GetEntryText( SvTreeListEntry* pEntry ) const; virtual OUString GetEntryText( SvTreeListEntry* pEntry ) const;
OUString SearchEntryText( SvTreeListEntry* pEntry ) const;
const Image& GetExpandedEntryBmp(const SvTreeListEntry* _pEntry ) const; const Image& GetExpandedEntryBmp(const SvTreeListEntry* _pEntry ) const;
const Image& GetCollapsedEntryBmp(const SvTreeListEntry* _pEntry ) const; const Image& GetCollapsedEntryBmp(const SvTreeListEntry* _pEntry ) const;
......
...@@ -1855,27 +1855,6 @@ OUString SvTreeListBox::GetEntryText(SvTreeListEntry* pEntry) const ...@@ -1855,27 +1855,6 @@ OUString SvTreeListBox::GetEntryText(SvTreeListEntry* pEntry) const
return pItem->GetText(); return pItem->GetText();
} }
OUString SvTreeListBox::SearchEntryText( SvTreeListEntry* pEntry ) const
{
DBG_CHKTHIS(SvTreeListBox,0);
DBG_ASSERT( pEntry, "SvTreeListBox::SearchEntryText(): no entry" );
OUString sRet;
sal_uInt16 nCount = pEntry->ItemCount();
sal_uInt16 nCur = 0;
SvLBoxItem* pItem;
while( nCur < nCount )
{
pItem = pEntry->GetItem( nCur );
if (pItem->GetType() == SV_ITEM_ID_LBOXSTRING && !static_cast<const SvLBoxString*>(pItem)->GetText().isEmpty())
{
sRet = static_cast<const SvLBoxString*>(pItem)->GetText();
break;
}
nCur++;
}
return sRet;
}
const Image& SvTreeListBox::GetExpandedEntryBmp(const SvTreeListEntry* pEntry) const const Image& SvTreeListBox::GetExpandedEntryBmp(const SvTreeListEntry* pEntry) const
{ {
DBG_CHKTHIS(SvTreeListBox,0); DBG_CHKTHIS(SvTreeListBox,0);
......
...@@ -119,7 +119,6 @@ SmFontPickList::Contains(Font const&) const ...@@ -119,7 +119,6 @@ SmFontPickList::Contains(Font const&) const
SmParser::Insert(rtl::OUString const&, int) SmParser::Insert(rtl::OUString const&, int)
SotFactory::Find(SvGlobalName const&) SotFactory::Find(SvGlobalName const&)
SvStream::WriteUCharPtr(unsigned char const*) SvStream::WriteUCharPtr(unsigned char const*)
SvTreeListBox::SearchEntryText(SvTreeListEntry*) const
SvViewDataEntry::SetObjectSelected(bool) SvViewDataEntry::SetObjectSelected(bool)
SvdProgressInfo::ReportError() SvdProgressInfo::ReportError()
SvpSalInstance::PostedEventsInQueue() SvpSalInstance::PostedEventsInQueue()
......
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