summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-17 21:41:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-18 14:48:51 +0200
commit16d9d1d1122bbf9f6dc0748b41826a59a8551716 (patch)
tree0252fe6ebf630f9023c2840713bfc1906bcc36dd /sw
parente98694bd787ead49b08e8490999cae0122626d40 (diff)
new loplugin:unusedvarsglobal
I copied and modified the unusedfields plugin to find unused variables. Change-Id: I18ed6daa202da70a2e564e4fe4760aed7ce070ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100891 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/calc.hxx1
-rw-r--r--sw/inc/poolfmt.hxx1
-rw-r--r--sw/inc/swtypes.hxx4
-rw-r--r--sw/inc/viewsh.hxx1
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.cxx2
-rw-r--r--sw/source/uibase/inc/initui.hxx10
-rw-r--r--sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx1
7 files changed, 0 insertions, 20 deletions
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index 86e33f4cb618..979e68b0421d 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -85,7 +85,6 @@ extern const char sCalc_Tan[];
extern const char sCalc_Asin[];
extern const char sCalc_Acos[];
extern const char sCalc_Atan[];
-extern const char sCalc_Tdif[];
extern const char sCalc_Round[];
extern const char sCalc_Date[];
diff --git a/sw/inc/poolfmt.hxx b/sw/inc/poolfmt.hxx
index 44d9214fe0f2..799134fd5017 100644
--- a/sw/inc/poolfmt.hxx
+++ b/sw/inc/poolfmt.hxx
@@ -61,7 +61,6 @@ const sal_uInt16 POOLGRP_NOCOLLID = (1 << 10);
/// POLLCOLL-groups:
const sal_uInt16 USER_FMT = (1 << 15);
-const sal_uInt16 POOL_FMT = (0 << 15);
const sal_uInt16 COLL_TEXT_BITS = (1 << 11);
const sal_uInt16 COLL_LISTS_BITS = (2 << 11);
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx
index 0f7d3af3e962..f457004570f7 100644
--- a/sw/inc/swtypes.hxx
+++ b/sw/inc/swtypes.hxx
@@ -96,10 +96,6 @@ const sal_uInt8 MAXLEVEL = 10;
const sal_uInt8 NO_NUMLEVEL = 0x20; // "or" with the levels.
-// pPathFinder is initialized by the UI.
-// The class delivers all paths needed.
-extern SwPathFinder *pPathFinder;
-
// Values for indents at numbering and bullet lists.
// (For more levels the values have to be multiplied with the levels+1;
// levels 0 ..4!)
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index fe3fee74bcea..23409190bdf8 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -164,7 +164,6 @@ class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
protected:
static ShellResource* mpShellRes; ///< Resources for the Shell.
- static vcl::DeleteOnDeinit< VclPtr<vcl::Window> > mpCareWindow; ///< Avoid this window.
static vcl::DeleteOnDeinit< std::shared_ptr<weld::Window> > mpCareDialog; ///< Avoid this window.
SwRect maVisArea; ///< The modern version of VisArea.
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx
index 8f15b03b9102..d6ddc0d47d91 100644
--- a/sw/source/filter/ww8/rtfsdrexport.cxx
+++ b/sw/source/filter/ww8/rtfsdrexport.cxx
@@ -486,8 +486,6 @@ void RtfSdrExport::AddRectangleDimensions(OStringBuffer& rBuffer,
rBuffer.append(OOO_STRING_SVTOOLS_RTF_SHPBOTTOM).append(rRectangle.Bottom());
}
-extern const char* pShapeTypes[];
-
static void lcl_AppendSP(OStringBuffer& rRunText, const char cName[], const OString& rValue)
{
rRunText.append('{')
diff --git a/sw/source/uibase/inc/initui.hxx b/sw/source/uibase/inc/initui.hxx
index 5f2b145eafb8..c9eec95d3bc3 100644
--- a/sw/source/uibase/inc/initui.hxx
+++ b/sw/source/uibase/inc/initui.hxx
@@ -22,16 +22,6 @@
#include <swdllapi.h>
#include <rtl/ustring.hxx>
-/*
- * Forward Declarations
- */
-class SwThesaurus;
-
-/*
- * Extern Definitions
- */
-extern SwThesaurus* pThes;
-
SW_DLLPUBLIC const OUString& GetCurrGlosGroup();
SW_DLLPUBLIC void SetCurrGlosGroup(const OUString& sStr);
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
index 3af99a1fb9e6..4fa626d3cebf 100644
--- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
+++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
@@ -323,7 +323,6 @@ static svx::sidebar::TreeNode BorderToTreeNode(const OUString& rName, const css:
{
table::BorderLine2 aBorder;
rVal >>= aBorder;
- svx::sidebar::TreeNode aChild;
svx::sidebar::TreeNode aCurNode;
aCurNode.sNodeName = PropertyNametoRID(rName);
aCurNode.NodeType = svx::sidebar::TreeNode::ComplexProperty;