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

loplugin:unusedmethods

Change-Id: I63f03bd1a0510bf411341e1a04a40eb7fce2d57e
Reviewed-on: https://gerrit.libreoffice.org/65495
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 3d9f9e7d
...@@ -158,6 +158,8 @@ include/svl/macitem.hxx:92 ...@@ -158,6 +158,8 @@ include/svl/macitem.hxx:92
class SvStream & SvxMacroTableDtor::Write(class SvStream &) const class SvStream & SvxMacroTableDtor::Write(class SvStream &) const
include/svl/poolitem.hxx:169 include/svl/poolitem.hxx:169
class SvStream & SfxPoolItem::Store(class SvStream &,unsigned short) const class SvStream & SfxPoolItem::Store(class SvStream &,unsigned short) const
include/svx/checklbx.hxx:76
void * SvxCheckListBox::SetEntryData(unsigned long,void *)
include/svx/dlgctrl.hxx:105 include/svx/dlgctrl.hxx:105
class Point SvxRectCtl::SetActualRPWithoutInvalidate(enum RectPoint) class Point SvxRectCtl::SetActualRPWithoutInvalidate(enum RectPoint)
include/svx/framelink.hxx:195 include/svx/framelink.hxx:195
...@@ -186,8 +188,8 @@ include/tools/config.hxx:38 ...@@ -186,8 +188,8 @@ include/tools/config.hxx:38
_Bool Config::ImplUpdateConfig() const _Bool Config::ImplUpdateConfig() const
include/tools/multisel.hxx:93 include/tools/multisel.hxx:93
_Bool StringRangeEnumerator::insertRange(int,int,_Bool) _Bool StringRangeEnumerator::insertRange(int,int,_Bool)
include/vcl/bitmap.hxx:184 include/vcl/bitmap.hxx:172
_Bool Bitmap::Dither(enum BmpDitherFlags) _Bool Bitmap::Dither()
include/vcl/bitmapex.hxx:241 include/vcl/bitmapex.hxx:241
_Bool BitmapEx::Rotate(long,const class Color &) _Bool BitmapEx::Rotate(long,const class Color &)
include/vcl/fontcharmap.hxx:49 include/vcl/fontcharmap.hxx:49
...@@ -206,9 +208,9 @@ include/vcl/texteng.hxx:280 ...@@ -206,9 +208,9 @@ include/vcl/texteng.hxx:280
_Bool TextEngine::Read(class SvStream &,const class TextSelection *) _Bool TextEngine::Read(class SvStream &,const class TextSelection *)
include/vcl/toolbox.hxx:513 include/vcl/toolbox.hxx:513
_Bool ToolBox::ChangeHighlightUpDn(_Bool) _Bool ToolBox::ChangeHighlightUpDn(_Bool)
include/vcl/weld.hxx:377 include/vcl/weld.hxx:397
_Bool weld::ComboBox::get_entry_selection_bounds(int &,int &) _Bool weld::ComboBox::get_entry_selection_bounds(int &,int &)
include/vcl/weld.hxx:1154 include/vcl/weld.hxx:1193
_Bool weld::TextView::get_selection_bounds(int &,int &) _Bool weld::TextView::get_selection_bounds(int &,int &)
lotuswordpro/inc/lwpsvstream.hxx:76 lotuswordpro/inc/lwpsvstream.hxx:76
class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &) class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &)
...@@ -216,7 +218,9 @@ lotuswordpro/inc/lwpsvstream.hxx:77 ...@@ -216,7 +218,9 @@ lotuswordpro/inc/lwpsvstream.hxx:77
class LwpSvStream & LwpSvStream::ReadUInt16(unsigned short &) class LwpSvStream & LwpSvStream::ReadUInt16(unsigned short &)
lotuswordpro/inc/lwpsvstream.hxx:78 lotuswordpro/inc/lwpsvstream.hxx:78
class LwpSvStream & LwpSvStream::ReadUInt32(unsigned int &) class LwpSvStream & LwpSvStream::ReadUInt32(unsigned int &)
sc/inc/document.hxx:2108 sc/inc/document.hxx:1404
_Bool ScDocument::GetDataAreaSubrange(class ScRange &) const
sc/inc/document.hxx:2126
const struct ScDocumentThreadSpecific & ScDocument::CalculateInColumnInThread(struct ScInterpreterContext &,const class ScAddress &,unsigned long,unsigned int,unsigned int) const struct ScDocumentThreadSpecific & ScDocument::CalculateInColumnInThread(struct ScInterpreterContext &,const class ScAddress &,unsigned long,unsigned int,unsigned int)
sc/inc/orcusfilters.hxx:44 sc/inc/orcusfilters.hxx:44
_Bool ScOrcusFilters::importODS_Styles(class ScDocument &,class rtl::OUString &) const _Bool ScOrcusFilters::importODS_Styles(class ScDocument &,class rtl::OUString &) const
...@@ -274,11 +278,11 @@ sd/source/ui/remotecontrol/IBluetoothSocket.hxx:37 ...@@ -274,11 +278,11 @@ sd/source/ui/remotecontrol/IBluetoothSocket.hxx:37
int sd::IBluetoothSocket::write(const void *,unsigned int) int sd::IBluetoothSocket::write(const void *,unsigned int)
sw/inc/calc.hxx:114 sw/inc/calc.hxx:114
class SwSbxValue & SwSbxValue::MakeDouble() class SwSbxValue & SwSbxValue::MakeDouble()
sw/inc/doc.hxx:1069 sw/inc/doc.hxx:1070
_Bool SwDoc::ReplaceNumRule(const struct SwPosition &,const class rtl::OUString &,const class rtl::OUString &) _Bool SwDoc::ReplaceNumRule(const struct SwPosition &,const class rtl::OUString &,const class rtl::OUString &)
sw/inc/doc.hxx:1230 sw/inc/doc.hxx:1231
_Bool SwDoc::SetColRowWidthHeight(class SwTableBox &,enum TableChgWidthHeightType,long,long) _Bool SwDoc::SetColRowWidthHeight(class SwTableBox &,enum TableChgWidthHeightType,long,long)
sw/inc/doc.hxx:1255 sw/inc/doc.hxx:1256
_Bool SwDoc::SplitTable(const struct SwPosition &,enum SplitTable_HeadlineOption,_Bool) _Bool SwDoc::SplitTable(const struct SwPosition &,enum SplitTable_HeadlineOption,_Bool)
sw/inc/editsh.hxx:264 sw/inc/editsh.hxx:264
_Bool SwEditShell::GetPaMParAttr(class SwPaM *,class SfxItemSet &) const _Bool SwEditShell::GetPaMParAttr(class SwPaM *,class SfxItemSet &) const
...@@ -286,7 +290,7 @@ sw/inc/editsh.hxx:636 ...@@ -286,7 +290,7 @@ sw/inc/editsh.hxx:636
const class GraphicAttr * SwEditShell::GetGraphicAttr(class GraphicAttr &) const const class GraphicAttr * SwEditShell::GetGraphicAttr(class GraphicAttr &) const
sw/inc/IDocumentUndoRedo.hxx:181 sw/inc/IDocumentUndoRedo.hxx:181
_Bool IDocumentUndoRedo::Repeat(class sw::RepeatContext &,const unsigned short) _Bool IDocumentUndoRedo::Repeat(class sw::RepeatContext &,const unsigned short)
sw/inc/swcrsr.hxx:156 sw/inc/swcrsr.hxx:159
_Bool SwCursor::ExpandToSentenceBorders(const class SwRootFrame *) _Bool SwCursor::ExpandToSentenceBorders(const class SwRootFrame *)
sw/inc/tblafmt.hxx:353 sw/inc/tblafmt.hxx:353
_Bool SwTableAutoFormatTable::Load(class SvStream &) _Bool SwTableAutoFormatTable::Load(class SvStream &)
......
...@@ -42,7 +42,6 @@ public: ...@@ -42,7 +42,6 @@ public:
WelfordRunner() : mfMean(0.0), mfM2(0.0), mnCount(0) {} WelfordRunner() : mfMean(0.0), mfM2(0.0), mnCount(0) {}
void update( double fVal ); void update( double fVal );
sal_uInt64 getCount() const { return mnCount; } sal_uInt64 getCount() const { return mnCount; }
double getMean() const { return mfMean; }
double getVarianceSample() const { return mnCount > 1 ? mfM2 / (mnCount-1) : 0.0; } double getVarianceSample() const { return mnCount > 1 ? mfM2 / (mnCount-1) : 0.0; }
double getVariancePopulation() const { return mnCount > 0 ? mfM2 / mnCount : 0.0; } double getVariancePopulation() const { return mnCount > 0 ? mfM2 / mnCount : 0.0; }
......
...@@ -2582,23 +2582,6 @@ void SwTOXEntryTabPage::SetWrtShell(SwWrtShell& rSh) ...@@ -2582,23 +2582,6 @@ void SwTOXEntryTabPage::SetWrtShell(SwWrtShell& rSh)
RES_POOLCHR_IDX_MAIN_ENTRY, OUString())); RES_POOLCHR_IDX_MAIN_ENTRY, OUString()));
} }
OUString SwTOXEntryTabPage::GetLevelHelp(sal_uInt16 nLevel) const
{
OUString sRet;
SwMultiTOXTabDialog* pTOXDlg = static_cast<SwMultiTOXTabDialog*>(GetTabDialog());
const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
if( TOX_INDEX == aCurType.eType )
SwStyleNameMapper::FillUIName( static_cast< sal_uInt16 >(1 == nLevel ? RES_POOLCOLL_TOX_IDXBREAK
: RES_POOLCOLL_TOX_IDX1 + nLevel-2), sRet );
else if( TOX_AUTHORITIES == aCurType.eType )
{
//wildcard -> show entry text
sRet = "*";
}
return sRet;
}
static const char* STR_TOKEN_ARY[] = static const char* STR_TOKEN_ARY[] =
{ {
STR_TOKEN_ENTRY_NO, STR_TOKEN_ENTRY_NO,
......
...@@ -416,8 +416,6 @@ public: ...@@ -416,8 +416,6 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
void SetWrtShell(SwWrtShell& rSh); void SetWrtShell(SwWrtShell& rSh);
OUString GetLevelHelp(sal_uInt16 nLevel) const;
void PreTokenButtonRemoved(const SwFormToken& rToken); void PreTokenButtonRemoved(const SwFormToken& rToken);
void SetFocus2theAllBtn(); void SetFocus2theAllBtn();
virtual bool EventNotify( NotifyEvent& rNEvt ) override; virtual bool EventNotify( NotifyEvent& rNEvt ) override;
......
...@@ -86,7 +86,6 @@ SW_DLLPUBLIC bool HasCharUnit( bool bWeb ); ...@@ -86,7 +86,6 @@ SW_DLLPUBLIC bool HasCharUnit( bool bWeb );
void SetApplyCharUnit(bool bApplyChar, bool bWeb); void SetApplyCharUnit(bool bApplyChar, bool bWeb);
// fill ListBox with all char style templates, except the standard ones // fill ListBox with all char style templates, except the standard ones
SW_DLLPUBLIC void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false);
SW_DLLPUBLIC void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false); SW_DLLPUBLIC void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false);
//inserts a string sorted into a ListBox, //inserts a string sorted into a ListBox,
......
...@@ -687,45 +687,6 @@ void InsertStringSorted(const OUString& rId, const OUString& rEntry, weld::Combo ...@@ -687,45 +687,6 @@ void InsertStringSorted(const OUString& rId, const OUString& rEntry, weld::Combo
rToFill.insert(nOffset, rEntry, &rId, nullptr, nullptr); rToFill.insert(nOffset, rEntry, &rId, nullptr, nullptr);
} }
void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault)
{
const sal_Int32 nOffset = rToFill.GetEntryCount() > 0 ? 1 : 0;
SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool();
pPool->SetSearchMask(SfxStyleFamily::Char);
SwDoc* pDoc = pDocSh->GetDoc();
const SfxStyleSheetBase* pBase = pPool->First();
OUString sStandard;
SwStyleNameMapper::FillUIName( RES_POOLCOLL_STANDARD, sStandard );
while(pBase)
{
if(bWithDefault || pBase->GetName() != sStandard)
{
const sal_Int32 nPos = bSorted
? InsertStringSorted(pBase->GetName(), rToFill, nOffset )
: rToFill.InsertEntry(pBase->GetName());
sal_IntPtr nPoolId = SwStyleNameMapper::GetPoolIdFromUIName( pBase->GetName(), SwGetPoolIdFromName::ChrFmt );
rToFill.SetEntryData( nPos, reinterpret_cast<void*>(nPoolId));
}
pBase = pPool->Next();
}
// non-pool styles
const SwCharFormats* pFormats = pDoc->GetCharFormats();
for(size_t i = 0; i < pFormats->size(); ++i)
{
const SwCharFormat* pFormat = (*pFormats)[i];
if(pFormat->IsDefault())
continue;
const OUString& rName = pFormat->GetName();
if(rToFill.GetEntryPos(rName) == LISTBOX_ENTRY_NOTFOUND)
{
const sal_Int32 nPos = bSorted
? InsertStringSorted(rName, rToFill, nOffset )
: rToFill.InsertEntry(rName);
rToFill.SetEntryData( nPos, reinterpret_cast<void*>(USHRT_MAX));
}
}
};
void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault) void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault)
{ {
const int nOffset = rToFill.get_count() > 0 ? 1 : 0; const int nOffset = rToFill.get_count() > 0 ? 1 : 0;
......
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