diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 09:40:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-19 11:01:56 +0200 |
commit | 5fe99ea3ee7b33a80f1419f2a4c9c1ea56dd00ee (patch) | |
tree | 0afae9735b407fe08421d19d702708a28f1e97c3 /sw/source | |
parent | 39969defa29948d77565a7cd8a3471baaec8f35d (diff) |
loplugin:unusedmethods in sw/
Change-Id: Id452bfac5c83f130a138e06984a0c79c37af70ac
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/bastyp/tabcol.cxx | 21 | ||||
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/doc/docsort.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/doc/lineinfo.cxx | 15 | ||||
-rw-r--r-- | sw/source/core/inc/blink.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/docsort.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/inc/noteurl.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/swblocks.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/text/porlin.hxx | 9 | ||||
-rw-r--r-- | sw/source/filter/html/htmlfly.hxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 35 |
11 files changed, 0 insertions, 97 deletions
diff --git a/sw/source/core/bastyp/tabcol.cxx b/sw/source/core/bastyp/tabcol.cxx index b6e4cd1c76d4..6bc07fe80c3c 100644 --- a/sw/source/core/bastyp/tabcol.cxx +++ b/sw/source/core/bastyp/tabcol.cxx @@ -55,27 +55,6 @@ SwTabCols &SwTabCols::operator=( const SwTabCols& rCpy ) return *this; } -bool SwTabCols::operator==( const SwTabCols& rCmp ) const -{ - if ( !(nLeftMin == rCmp.GetLeftMin() && - nLeft == rCmp.GetLeft() && - nRight == rCmp.GetRight() && - nRightMax== rCmp.GetRightMax()&& - bLastRowAllowedToChange== rCmp.IsLastRowAllowedToChange() && - Count()== rCmp.Count()) ) - return false; - - for ( size_t i = 0; i < Count(); ++i ) - { - SwTabColsEntry aEntry1 = aData[i]; - SwTabColsEntry aEntry2 = rCmp.GetData()[i]; - if ( aEntry1.nPos != aEntry2.nPos || aEntry1.bHidden != aEntry2.bHidden ) - return false; - } - - return true; -} - void SwTabCols::Insert( long nValue, long nMin, long nMax, bool bValue, size_t nPos ) { diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index 936245a4550f..07dc0e516fe6 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -1554,11 +1554,6 @@ const OUString& SwRangeRedline::GetComment( sal_uInt16 nPos ) const return GetRedlineData(nPos).sComment; } -bool SwRangeRedline::operator==( const SwRangeRedline& rCmp ) const -{ - return this == &rCmp; -} - bool SwRangeRedline::operator<( const SwRangeRedline& rCmp ) const { if (*Start() < *rCmp.Start()) diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx index 520500047ef9..e0d08de2621c 100644 --- a/sw/source/core/doc/docsort.cxx +++ b/sw/source/core/doc/docsort.cxx @@ -158,11 +158,6 @@ int SwSortElement::keycompare(const SwSortElement& rCmp, sal_uInt16 nKey) const return nCmp; } -bool SwSortElement::operator==(const SwSortElement& ) const -{ - return false; -} - bool SwSortElement::operator<(const SwSortElement& rCmp) const { // The actual comparison diff --git a/sw/source/core/doc/lineinfo.cxx b/sw/source/core/doc/lineinfo.cxx index 3413a4a6ab0d..0b73cbac9b3d 100644 --- a/sw/source/core/doc/lineinfo.cxx +++ b/sw/source/core/doc/lineinfo.cxx @@ -101,21 +101,6 @@ SwLineNumberInfo& SwLineNumberInfo::operator=(const SwLineNumberInfo &rCpy) return *this; } -bool SwLineNumberInfo::operator==( const SwLineNumberInfo& rInf ) const -{ - return GetRegisteredIn() == rInf.GetRegisteredIn() && - aType.GetNumberingType() == rInf.GetNumType().GetNumberingType() && - aDivider == rInf.GetDivider() && - nPosFromLeft == rInf.GetPosFromLeft() && - nCountBy == rInf.GetCountBy() && - nDividerCountBy == rInf.GetDividerCountBy() && - ePos == rInf.GetPos() && - bPaintLineNumbers == rInf.IsPaintLineNumbers() && - bCountBlankLines == rInf.IsCountBlankLines() && - bCountInFlys == rInf.IsCountInFlys() && - bRestartEachPage == rInf.IsRestartEachPage(); -} - SwCharFormat* SwLineNumberInfo::GetCharFormat( IDocumentStylePoolAccess& rIDSPA ) const { if ( !GetRegisteredIn() ) diff --git a/sw/source/core/inc/blink.hxx b/sw/source/core/inc/blink.hxx index d9beba2cb693..00b624a1b408 100644 --- a/sw/source/core/inc/blink.hxx +++ b/sw/source/core/inc/blink.hxx @@ -60,8 +60,6 @@ public: sal_uInt16 GetDirection() const { return nDir; } bool operator<( const SwBlinkPortion& rBlinkPortion ) const { return reinterpret_cast<sal_IntPtr>(pPor) < reinterpret_cast<sal_IntPtr>(rBlinkPortion.pPor); } - bool operator==( const SwBlinkPortion& rBlinkPortion ) const - { return reinterpret_cast<sal_IntPtr>(pPor) == reinterpret_cast<sal_IntPtr>(rBlinkPortion.pPor); } }; typedef std::set<std::unique_ptr<SwBlinkPortion>, diff --git a/sw/source/core/inc/docsort.hxx b/sw/source/core/inc/docsort.hxx index 54e94bbecdeb..a7a01911c0e4 100644 --- a/sw/source/core/inc/docsort.hxx +++ b/sw/source/core/inc/docsort.hxx @@ -82,7 +82,6 @@ struct SwSortElement virtual OUString GetKey(sal_uInt16 nKey ) const = 0; virtual double GetValue(sal_uInt16 nKey ) const; - bool operator==(const SwSortElement& ) const; bool operator<(const SwSortElement& ) const; static double StrToDouble(const OUString& rStr); diff --git a/sw/source/core/inc/noteurl.hxx b/sw/source/core/inc/noteurl.hxx index 427802c2713e..f1379568b037 100644 --- a/sw/source/core/inc/noteurl.hxx +++ b/sw/source/core/inc/noteurl.hxx @@ -41,8 +41,6 @@ public: const OUString& GetURL() const { return aURL; } const OUString& GetTarget() const { return aTarget; } const SwRect& GetRect() const { return aRect; } - bool operator==( const SwURLNote& rSwURLNote ) const - { return aRect == rSwURLNote.aRect; } }; class SwNoteURL diff --git a/sw/source/core/inc/swblocks.hxx b/sw/source/core/inc/swblocks.hxx index 90bbb59bbccb..53127ee14b5a 100644 --- a/sw/source/core/inc/swblocks.hxx +++ b/sw/source/core/inc/swblocks.hxx @@ -43,7 +43,6 @@ public: SwBlockName( const OUString& rShort, const OUString& rLong, const OUString& rPackageName ); /// For sorting in the array - bool operator==( const SwBlockName& r ) const { return aShort == r.aShort; } bool operator< ( const SwBlockName& r ) const { return aShort < r.aShort; } }; diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx index cf46070c3b71..4332bb0c2a77 100644 --- a/sw/source/core/text/porlin.hxx +++ b/sw/source/core/text/porlin.hxx @@ -80,7 +80,6 @@ public: // Access methods inline SwLinePortion *GetPortion() const { return pPortion; } inline SwLinePortion &operator=(const SwLinePortion &rPortion); - inline bool operator==( const SwLinePortion &rPortion ) const; inline sal_Int32 GetLen() const { return nLineLength; } inline void SetLen( const sal_Int32 nLen ) { nLineLength = nLen; } inline void SetPortion( SwLinePortion *pNew ){ pPortion = pNew; } @@ -193,14 +192,6 @@ inline SwLinePortion &SwLinePortion::operator=(const SwLinePortion &rPortion) return *this; } -inline bool SwLinePortion::operator==(const SwLinePortion &rPortion ) const -{ - return( Height() == rPortion.Height() && - Width() == rPortion.Width() && - nLineLength == rPortion.GetLen() && - nAscent == rPortion.GetAscent() ); -} - inline SwLinePortion::SwLinePortion(const SwLinePortion &rPortion) : SwPosSize( rPortion ), pPortion( nullptr ), diff --git a/sw/source/filter/html/htmlfly.hxx b/sw/source/filter/html/htmlfly.hxx index bf42b0f5ee46..49df7cfc6a13 100644 --- a/sw/source/filter/html/htmlfly.hxx +++ b/sw/source/filter/html/htmlfly.hxx @@ -96,7 +96,6 @@ public: SwHTMLPosFlyFrame( const SwPosFlyFrame& rPosFly, const SdrObject *pSdrObj, sal_uInt8 nOutMode ); - bool operator==( const SwHTMLPosFlyFrame& ) const { return false; } bool operator<( const SwHTMLPosFlyFrame& ) const; const SwFrameFormat& GetFormat() const { return *pFrameFormat; } diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 90c7e57a6751..b4632ba4ae1e 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -757,26 +757,6 @@ void SwDBManager::GetColumnNames(ListBox* pListBox, } -sal_Int32 SwDBManager::GetRowCount(const OUString& rDBName, const OUString& rTableName) -{ - SwDBData aData; - aData.sDataSource = rDBName; - aData.sCommand = rTableName; - aData.nCommandType = -1; - SwDSParam* pParam = FindDSData(aData, false); - uno::Reference<sdbc::XConnection> xConnection; - if(pParam && pParam->xConnection.is()) - xConnection = pParam->xConnection; - else - { - OUString sDBName(rDBName); - xConnection = RegisterConnection( sDBName ); - } - - return GetRowCount(xConnection, rTableName); -} - - sal_Int32 SwDBManager::GetRowCount(uno::Reference<sdbc::XConnection> xConnection, const OUString& rTableName) { @@ -791,21 +771,6 @@ sal_Int32 SwDBManager::GetRowCount(uno::Reference<sdbc::XConnection> xConnection -sal_Int32 SwDBManager::GetRowCount() const -{ - sal_Int32 nCnt = pImpl->pMergeData->aSelection.getLength(); - - if(nCnt == 0) - { - uno::Reference<beans::XPropertySet> xProp(pImpl->pMergeData->xResultSet, uno::UNO_QUERY); - if(xProp.is()) - xProp->getPropertyValue("RowCount") >>= nCnt; - } - - return nCnt; -} - - SwDBManager::SwDBManager(SwDoc* pDoc) : bCancel(false) , bInitDBFields(false) |