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

loplugin:unusedmethods

Change-Id: I0226d33cbe224519cf2ed9ea5143ffe68fdbc884
Reviewed-on: https://gerrit.libreoffice.org/61775
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7f5fd9d9
......@@ -56,11 +56,11 @@ include/LibreOfficeKit/LibreOfficeKit.hxx:484
unsigned char * lok::Document::renderFont(const char *,const char *,int *,int *)
include/LibreOfficeKit/LibreOfficeKit.hxx:523
_Bool lok::Document::getViewIds(int *,unsigned long)
include/LibreOfficeKit/LibreOfficeKit.hxx:643
include/LibreOfficeKit/LibreOfficeKit.hxx:671
char * lok::Office::getFilterTypes()
include/LibreOfficeKit/LibreOfficeKit.hxx:697
include/LibreOfficeKit/LibreOfficeKit.hxx:725
char * lok::Office::getVersionInfo()
include/LibreOfficeKit/LibreOfficeKit.hxx:711
include/LibreOfficeKit/LibreOfficeKit.hxx:739
_Bool lok::Office::runMacro(const char *)
include/oox/crypto/AgileEngine.hxx:121
_Bool oox::core::AgileEngine::decryptHmacKey()
......@@ -196,9 +196,9 @@ include/vcl/texteng.hxx:279
_Bool TextEngine::Read(class SvStream &,const class TextSelection *)
include/vcl/toolbox.hxx:514
_Bool ToolBox::ChangeHighlightUpDn(_Bool)
include/vcl/weld.hxx:316
include/vcl/weld.hxx:344
_Bool weld::ComboBox::get_entry_selection_bounds(int &,int &)
include/vcl/weld.hxx:956
include/vcl/weld.hxx:1017
_Bool weld::TextView::get_selection_bounds(int &,int &)
lotuswordpro/inc/lwpsvstream.hxx:76
class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &)
......
......@@ -59,9 +59,6 @@ public:
bool IsOutliner2() const
{ return bool( nControlBits & EEControlBits::OUTLINER2 ); }
bool IsAnyOutliner() const
{ return IsOutliner() || IsOutliner2(); }
bool DoNotUseColors() const
{ return bool( nControlBits & EEControlBits::NOCOLORS ); }
......
......@@ -162,7 +162,6 @@ public:
void SetLanguageList( SvxLanguageListFlags nLangList,
bool bHasLangNone, bool bLangNoneIsLangAll = false,
bool bCheckSpellAvail = false );
void AddLanguages( const std::vector< LanguageType >& rLanguageTypes, SvxLanguageListFlags nLangList );
void InsertLanguage(const LanguageType nLangType);
EditedAndValid GetEditedAndValid() const { return m_eEditedAndValid;}
......
......@@ -97,7 +97,6 @@ public:
SdrUndoGroup(SdrModel& rNewMod);
virtual ~SdrUndoGroup() override;
void Clear();
sal_Int32 GetActionCount() const { return maActions.size(); }
SdrUndoAction* GetAction(sal_Int32 nNum) const { return maActions[nNum].get(); }
void AddAction(std::unique_ptr<SdrUndoAction> pAct);
......
......@@ -103,7 +103,6 @@ public:
void executeAction(Action& ac) const;
void executeColumnAction(ScDocument& rDoc, ColumnAction& ac) const;
void executeColumnAction(ScDocument& rDoc, ColumnAction& ac, double& fMem) const;
};
/**
......@@ -162,7 +161,6 @@ class RangeColumnSpanSet
public:
RangeColumnSpanSet( const ScRange& spanRange )
: range( spanRange ) {}
void executeAction(ScDocument& rDoc, sc::ColumnSpanSet::Action& ac) const;
void executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac) const;
void executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac, double& fMem) const;
private:
......
......@@ -217,49 +217,6 @@ void ColumnSpanSet::executeColumnAction(ScDocument& rDoc, ColumnAction& ac) cons
}
}
void ColumnSpanSet::executeColumnAction(ScDocument& rDoc, ColumnAction& ac, double& fMem) const
{
for (size_t nTab = 0; nTab < maTables.size(); ++nTab)
{
if (!maTables[nTab])
continue;
const TableType& rTab = *maTables[nTab];
for (size_t nCol = 0; nCol < rTab.size(); ++nCol)
{
if (!rTab[nCol])
continue;
ScTable* pTab = rDoc.FetchTable(nTab);
if (!pTab)
continue;
if (!ValidCol(nCol))
{
// End the loop.
nCol = rTab.size();
continue;
}
ScColumn& rColumn = pTab->aCol[nCol];
ac.startColumn(&rColumn);
ColumnType& rCol = *rTab[nCol];
ColumnSpansType::const_iterator it = rCol.maSpans.begin(), itEnd = rCol.maSpans.end();
SCROW nRow1, nRow2;
nRow1 = it->first;
bool bVal = it->second;
for (++it; it != itEnd; ++it)
{
nRow2 = it->first-1;
ac.executeSum( nRow1, nRow2, bVal, fMem );
nRow1 = nRow2+1; // for the next iteration.
bVal = it->second;
}
}
}
}
namespace {
class Scanner
......@@ -379,25 +336,6 @@ bool SingleColumnSpanSet::empty() const
}
void RangeColumnSpanSet::executeAction(ScDocument& rDoc, sc::ColumnSpanSet::Action& ac) const
{
for (SCTAB nTab = range.aStart.Tab(); nTab <= range.aEnd.Tab(); ++nTab)
{
for (SCCOL nCol = range.aStart.Col(); nCol <= range.aEnd.Col(); ++nCol)
{
ScTable* pTab = rDoc.FetchTable(nTab);
if (!pTab)
continue;
if (!ValidCol(nCol))
break;
ac.startColumn(nTab, nCol);
ac.execute(ScAddress(nCol, range.aStart.Row(), nTab), range.aEnd.Row() - range.aStart.Row() + 1, true);
}
}
}
void RangeColumnSpanSet::executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac) const
{
for (SCTAB nTab = range.aStart.Tab(); nTab <= range.aEnd.Tab(); ++nTab)
......
......@@ -143,8 +143,6 @@ public:
const OUString& rPresetId,
const Link<LinkParamNone*,void>& rModifyHdl );
sal_Int32 getControlType() const { return mnType; }
protected:
std::unique_ptr<weld::Builder> mxBuilder;
std::unique_ptr<weld::Container> mxContainer;
......
......@@ -117,11 +117,6 @@ SdrUndoGroup::~SdrUndoGroup()
{
}
void SdrUndoGroup::Clear()
{
maActions.clear();
}
void SdrUndoGroup::AddAction(std::unique_ptr<SdrUndoAction> pAct)
{
maActions.push_back(std::move(pAct));
......
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