summaryrefslogtreecommitdiff
path: root/sw/source/core/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-21 14:20:18 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-22 07:02:13 +0000
commitb975aceec3c5f101916b525c10c44408b3e9da9d (patch)
tree3c94667ae8339141d2e7699f813f3ceee8a21fc6 /sw/source/core/inc
parent74d4168f8830f7bbec6b784c3fb774296d9adafa (diff)
loplugin:unusedmethods sw(part2)
Change-Id: Ib95638267c5a7df73ccdd179dd62ac7c9a53a5e4 Reviewed-on: https://gerrit.libreoffice.org/17262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/inc')
-rw-r--r--sw/source/core/inc/SwXMLBlockImport.hxx9
-rw-r--r--sw/source/core/inc/SwXMLTextBlocks.hxx1
-rw-r--r--sw/source/core/inc/UndoNumbering.hxx1
-rw-r--r--sw/source/core/inc/UndoRedline.hxx1
-rw-r--r--sw/source/core/inc/flyfrms.hxx12
-rw-r--r--sw/source/core/inc/mvsave.hxx9
-rw-r--r--sw/source/core/inc/notxtfrm.hxx1
-rw-r--r--sw/source/core/inc/objectformatter.hxx21
-rw-r--r--sw/source/core/inc/swblocks.hxx1
9 files changed, 5 insertions, 51 deletions
diff --git a/sw/source/core/inc/SwXMLBlockImport.hxx b/sw/source/core/inc/SwXMLBlockImport.hxx
index 636fe29d6985..f6044938adb4 100644
--- a/sw/source/core/inc/SwXMLBlockImport.hxx
+++ b/sw/source/core/inc/SwXMLBlockImport.hxx
@@ -58,9 +58,6 @@ public:
class SwXMLTextBlockImport : public SvXMLImport
{
-private:
- SwXMLTextBlocks &rBlockList;
-
protected:
// This method is called after the namespace map has been updated, but
// before a context for the current element has been pushed.
@@ -72,12 +69,8 @@ public:
OUString &m_rText;
SwXMLTextBlockImport(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
- SwXMLTextBlocks &rBlocks, OUString &rNewText, bool bNewTextOnly );
+ OUString &rNewText, bool bNewTextOnly );
- SwXMLTextBlocks& getBlockList()
- {
- return rBlockList;
- }
virtual ~SwXMLTextBlockImport()
throw();
virtual void SAL_CALL endDocument()
diff --git a/sw/source/core/inc/SwXMLTextBlocks.hxx b/sw/source/core/inc/SwXMLTextBlocks.hxx
index 070335b41f15..110dca125389 100644
--- a/sw/source/core/inc/SwXMLTextBlocks.hxx
+++ b/sw/source/core/inc/SwXMLTextBlocks.hxx
@@ -63,7 +63,6 @@ public:
virtual sal_uLong GetDoc( sal_uInt16 ) SAL_OVERRIDE;
virtual sal_uLong BeginPutDoc( const OUString&, const OUString& ) SAL_OVERRIDE;
virtual sal_uLong PutDoc() SAL_OVERRIDE;
- virtual sal_uLong GetText( sal_uInt16, OUString& ) SAL_OVERRIDE;
virtual sal_uLong PutText( const OUString&, const OUString&, const OUString& ) SAL_OVERRIDE;
virtual sal_uLong MakeBlockList() SAL_OVERRIDE;
diff --git a/sw/source/core/inc/UndoNumbering.hxx b/sw/source/core/inc/UndoNumbering.hxx
index 7e3164a76768..8406fd47c896 100644
--- a/sw/source/core/inc/UndoNumbering.hxx
+++ b/sw/source/core/inc/UndoNumbering.hxx
@@ -51,7 +51,6 @@ public:
virtual SwRewriter GetRewriter() const SAL_OVERRIDE;
SwHistory* GetHistory(); // will be created if necessary
- void SetSttNum( sal_uLong nNdIdx ) { nSttSet = nNdIdx; }
void SaveOldNumRule( const SwNumRule& rOld );
void SetLRSpaceEndPos();
diff --git a/sw/source/core/inc/UndoRedline.hxx b/sw/source/core/inc/UndoRedline.hxx
index 72684ff50420..9fd448f51e3b 100644
--- a/sw/source/core/inc/UndoRedline.hxx
+++ b/sw/source/core/inc/UndoRedline.hxx
@@ -46,7 +46,6 @@ public:
virtual void UndoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
virtual void RedoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
- SwUndoId GetUserId() const { return mnUserId; }
sal_uInt16 GetRedlSaveCount() const;
};
diff --git a/sw/source/core/inc/flyfrms.hxx b/sw/source/core/inc/flyfrms.hxx
index c096a4bd803e..01c3cb6a7e9d 100644
--- a/sw/source/core/inc/flyfrms.hxx
+++ b/sw/source/core/inc/flyfrms.hxx
@@ -204,11 +204,7 @@ public:
inline void InvalidateLayout() const;
inline void InvalidateContent() const;
- inline void ValidateLayout() const;
- inline void ValidateContent() const;
bool IsInvalid() const { return (bInvalidLayout || bInvalidContent); }
- bool IsInvalidLayout() const { return bInvalidLayout; }
- bool IsInvalidContent() const { return bInvalidContent; }
// (26.11.93, see tabfrm.hxx, but might also be valid for others)
// For creation of a Fly after a FlyCnt was created _and_ inserted.
@@ -237,14 +233,6 @@ inline void SwFlyInCntFrm::InvalidateContent() const
const_cast<SwFlyInCntFrm*>(this)->bInvalidContent = true;
}
-inline void SwFlyInCntFrm::ValidateLayout() const
-{
- const_cast<SwFlyInCntFrm*>(this)->bInvalidLayout = false;
-}
-inline void SwFlyInCntFrm::ValidateContent() const
-{
- const_cast<SwFlyInCntFrm*>(this)->bInvalidContent = false;
-}
#endif
diff --git a/sw/source/core/inc/mvsave.hxx b/sw/source/core/inc/mvsave.hxx
index 09d09ec1f737..508fe87e0c3a 100644
--- a/sw/source/core/inc/mvsave.hxx
+++ b/sw/source/core/inc/mvsave.hxx
@@ -45,7 +45,7 @@ namespace sw { namespace mark
class SaveBookmark
{
- public:
+ public:
SaveBookmark(bool bSavePos,
bool bSaveOtherPos,
const ::sw::mark::IMark& rBkmk,
@@ -54,10 +54,8 @@ namespace sw { namespace mark
void SetInDoc(SwDoc* pDoc,
const SwNodeIndex&,
const SwIndex* pIdx =0);
- IDocumentMarkAccess::MarkType GetOriginalBkmType() const
- { return m_eOrigBkmType; }
- private:
+ private:
OUString m_aName;
OUString m_aShortName;
vcl::KeyCode m_aCode;
@@ -74,7 +72,7 @@ namespace sw { namespace mark
/// Takes care of storing relevant attributes of an SwTextNode before split, then restore them on the new node.
class ContentIdxStore
{
- public:
+ public:
virtual void Clear() =0;
virtual bool Empty() =0;
virtual void Save(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nContent, bool bSaveFlySplit=false) =0;
@@ -128,7 +126,6 @@ public:
SwDataChanged( SwDoc* pDoc, const SwPosition& rPos );
~SwDataChanged();
- sal_uLong GetNode() const { return nNode; }
sal_Int32 GetContent() const { return nContent; }
};
diff --git a/sw/source/core/inc/notxtfrm.hxx b/sw/source/core/inc/notxtfrm.hxx
index 73a516a7fedb..f4241e096e6f 100644
--- a/sw/source/core/inc/notxtfrm.hxx
+++ b/sw/source/core/inc/notxtfrm.hxx
@@ -53,7 +53,6 @@ public:
virtual bool GetCrsrOfst(SwPosition* pPos, Point& aPoint,
SwCrsrMoveState* = 0, bool bTestBackground = false) const SAL_OVERRIDE;
- const Size &GetGrfSize() const { return GetSize(); }
void GetGrfArea( SwRect &rRect, SwRect * = 0, bool bMirror = true ) const;
bool IsTransparent() const;
diff --git a/sw/source/core/inc/objectformatter.hxx b/sw/source/core/inc/objectformatter.hxx
index 8580719d1ca4..8fbce7a5b35f 100644
--- a/sw/source/core/inc/objectformatter.hxx
+++ b/sw/source/core/inc/objectformatter.hxx
@@ -101,30 +101,19 @@ class SwObjectFormatter
return mpLayAction;
}
- /** method to restrict the format of floating screen objects to
- as-character anchored ones
- */
- inline void SetFormatOnlyAsCharAnchored()
- {
- mbFormatOnlyAsCharAnchored = true;
- }
-
inline bool FormatOnlyAsCharAnchored() const
{
return mbFormatOnlyAsCharAnchored;
}
/** performs the intrinsic format of a given floating screen object and its content.
-
- #i28701#
*/
void _FormatObj( SwAnchoredObject& _rAnchoredObj );
/** invokes the intrinsic format method for all floating screen objects,
anchored at anchor frame on the given page frame
- #i28701#
- #i26945# - for format of floating screen objects for
+ for format of floating screen objects for
follow text frames, the 'master' text frame is passed to the method.
Thus, the objects, whose anchor character is inside the follow text
frame can be formatted.
@@ -135,26 +124,18 @@ class SwObjectFormatter
bool _FormatObjsAtFrm( SwTextFrm* _pMasterTextFrm = 0L );
/** accessor to collected anchored object
-
- #i28701#
*/
SwAnchoredObject* GetCollectedObj( const sal_uInt32 _nIndex );
/** accessor to 'anchor' page number of collected anchored object
-
- #i28701#
*/
sal_uInt32 GetPgNumOfCollected( const sal_uInt32 _nIndex );
/** accessor to 'anchor' type of collected anchored object
-
- #i26945#
*/
bool IsCollectedAnchoredAtMaster( const sal_uInt32 _nIndex );
/** accessor to total number of collected anchored objects
-
- #i28701#
*/
sal_uInt32 CountOfCollected();
diff --git a/sw/source/core/inc/swblocks.hxx b/sw/source/core/inc/swblocks.hxx
index 6c186abae8a8..f309519554e5 100644
--- a/sw/source/core/inc/swblocks.hxx
+++ b/sw/source/core/inc/swblocks.hxx
@@ -109,7 +109,6 @@ public:
virtual sal_uLong GetDoc( sal_uInt16 ) = 0;
virtual sal_uLong BeginPutDoc( const OUString&, const OUString& ) = 0;
virtual sal_uLong PutDoc() = 0;
- virtual sal_uLong GetText( sal_uInt16, OUString& ) = 0;
virtual sal_uLong PutText( const OUString&, const OUString&, const OUString& ) = 0;
virtual sal_uLong MakeBlockList() = 0;