diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-28 08:39:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-30 06:23:00 +0000 |
commit | a45827b2308febc7369db27fb489a6d1389534e1 (patch) | |
tree | 0b697341738010da35bd0a6a6189ef6761e5db0a /sc | |
parent | 2387c2a46e15995686d28dccdfd455012072b4cf (diff) |
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971
Reviewed-on: https://gerrit.libreoffice.org/17378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/chartpos.hxx | 1 | ||||
-rw-r--r-- | sc/inc/clkernelthread.hxx | 2 | ||||
-rw-r--r-- | sc/inc/colorscale.hxx | 1 | ||||
-rw-r--r-- | sc/inc/funcdesc.hxx | 12 | ||||
-rw-r--r-- | sc/inc/table.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 23 | ||||
-rw-r--r-- | sc/source/core/data/funcdesc.cxx | 17 | ||||
-rw-r--r-- | sc/source/core/data/table2.cxx | 10 | ||||
-rw-r--r-- | sc/source/core/tool/clkernelthread.cxx | 12 |
9 files changed, 1 insertions, 80 deletions
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx index 08d3a6114915..c3693b0d91cc 100644 --- a/sc/inc/chartpos.hxx +++ b/sc/inc/chartpos.hxx @@ -127,7 +127,6 @@ public: virtual ~ScChartPositioner(); const ScRangeListRef& GetRangeList() const { return aRangeListRef; } - void SetRangeList( const ScRangeListRef& rNew ) { aRangeListRef = rNew; } void SetRangeList( const ScRange& rNew ); void SetHeaders(bool bCol, bool bRow) { bColHeaders=bCol; bRowHeaders=bRow; } diff --git a/sc/inc/clkernelthread.hxx b/sc/inc/clkernelthread.hxx index ef53a5e689da..d4d83ed5d688 100644 --- a/sc/inc/clkernelthread.hxx +++ b/sc/inc/clkernelthread.hxx @@ -34,8 +34,6 @@ public: CLBuildKernelThread(); virtual ~CLBuildKernelThread(); - void push(CLBuildKernelWorkItem item); - osl::Condition maCompilationDoneCondition; protected: diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index 668d3e55473d..670ccd02b068 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -255,7 +255,6 @@ private: double GetMaxValue() const; void calcMinMax(double& nMin, double& nMax) const; - bool CheckEntriesForRel(const ScRange& rRange) const; double CalcValue(double nMin, double nMax, ColorScaleEntries::const_iterator& rItr) const; public: ScColorScaleFormat(ScDocument* pDoc); diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx index 2410de3751a6..d1326c602418 100644 --- a/sc/inc/funcdesc.hxx +++ b/sc/inc/funcdesc.hxx @@ -310,18 +310,6 @@ public: static OUString GetCategoryName(sal_uInt32 _nCategoryNumber ); /** - Returns function by name. - - Searches for a function with the function name rFName, while ignoring case. - - @param rFName - name of the function - - @return pointer to function with the name rFName, null if no such function was found. - */ - const ScFuncDesc* Get( const OUString& rFName ) const; - - /** Returns function by index. Searches for a function with the function index nFIndex. diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 183fde607ec0..77330b3d4367 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -438,9 +438,6 @@ public: sc::StartListeningContext& rStartCxt, sc::EndListeningContext& rEndCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); - void EndListeningFormulaCells( - sc::EndListeningContext& rEndCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); - void SetDirtyFromClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, sc::ColumnSpanSet& rBroadcastSpans ); diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 165532cd7d97..96f2a139d607 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -612,30 +612,7 @@ bool ScColorScaleFormat::NeedsRepaint() const return false; } -bool ScColorScaleFormat::CheckEntriesForRel(const ScRange& rRange) const -{ - bool bNeedUpdate = false; - for(const_iterator itr = begin(); itr != end(); ++itr) - { - ScColorScaleEntryType eType = itr->GetType(); - switch(eType) - { - case COLORSCALE_MIN: - case COLORSCALE_MAX: - bNeedUpdate = true; - break; - case COLORSCALE_FORMULA: - return true; - default: - break; - } - } - // TODO: check also if the changed value is the new min/max - // or has been the old min/max value - bNeedUpdate = bNeedUpdate && GetRange().Intersects(rRange); - return bNeedUpdate; -} condformat::ScFormatEntryType ScColorScaleFormat::GetType() const { diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx index f464205d0afb..5e90a8f763a8 100644 --- a/sc/source/core/data/funcdesc.cxx +++ b/sc/source/core/data/funcdesc.cxx @@ -683,22 +683,7 @@ ScFunctionMgr::~ScFunctionMgr() delete aCatLists[i]; } -const ScFuncDesc* ScFunctionMgr::Get( const OUString& rFName ) const -{ - const ScFuncDesc* pDesc = NULL; - if (rFName.getLength() <= pFuncList->GetMaxFuncNameLen()) - { - ::boost::scoped_ptr<ScFuncDesc> dummy(new ScFuncDesc); - dummy->pFuncName = new OUString(rFName); - ::std::vector<const ScFuncDesc*>::iterator lower = - ::std::lower_bound(aCatLists[0]->begin(), aCatLists[0]->end(), - static_cast<const ScFuncDesc*>(dummy.get()), ScFuncDesc::compareByName); - - if(rFName.equalsIgnoreAsciiCase(*(*lower)->pFuncName)) - pDesc = *lower; - } - return pDesc; -} + const ScFuncDesc* ScFunctionMgr::Get( sal_uInt16 nFIndex ) const { diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 92ad6231282d..2ba437d07f98 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1074,16 +1074,6 @@ void ScTable::StartListeningFormulaCells( aCol[i].StartListeningFormulaCells(rStartCxt, rEndCxt, nRow1, nRow2); } -void ScTable::EndListeningFormulaCells( - sc::EndListeningContext& rEndCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) -{ - if (nCol2 > MAXCOL) nCol2 = MAXCOL; - if (nRow2 > MAXROW) nRow2 = MAXROW; - if (ValidColRow(nCol1, nRow1) && ValidColRow(nCol2, nRow2)) - for (SCCOL i = nCol1; i <= nCol2; ++i) - aCol[i].EndListeningFormulaCells(rEndCxt, nRow1, nRow2); -} - void ScTable::CopyToTable( sc::CopyToDocContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, InsertDeleteFlags nFlags, bool bMarked, ScTable* pDestTab, const ScMarkData* pMarkData, diff --git a/sc/source/core/tool/clkernelthread.cxx b/sc/source/core/tool/clkernelthread.cxx index 9a83a1e033ce..52a483051a4c 100644 --- a/sc/source/core/tool/clkernelthread.cxx +++ b/sc/source/core/tool/clkernelthread.cxx @@ -64,18 +64,6 @@ void CLBuildKernelThread::execute() } } -void CLBuildKernelThread::push(CLBuildKernelWorkItem item) -{ - osl::MutexGuard guard(maQueueMutex); - maQueue.push(item); - maQueueCondition.set(); - - // This is only to ensure that the OpenCL parameters are initialized on - // the main thread before spawning a worker thread for kernel - // pre-compilation. - sc::FormulaGroupInterpreter::getStatic(); -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |