diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-08 22:11:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-09 08:25:30 +0200 |
commit | f2517e82904b92989ed7e38a070c18234f460b33 (patch) | |
tree | 2b9bb63f3865670ad250f9fd706a577d1696d88f /chart2 | |
parent | 1159f58831c69680e9f10767d5358e13b66579dd (diff) |
improve loplugin:unusedvarsglobal
to find any global variable, was checking the wrong property of
VarDecl
Change-Id: I454b4e0c1701bb0771768a1ee10cd738c4ab0726
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102278
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/itemsetwrapper/SchWhichPairs.hxx | 38 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 2 |
2 files changed, 0 insertions, 40 deletions
diff --git a/chart2/source/controller/itemsetwrapper/SchWhichPairs.hxx b/chart2/source/controller/itemsetwrapper/SchWhichPairs.hxx index 5ecd5f30cc19..ac08f2c99cf6 100644 --- a/chart2/source/controller/itemsetwrapper/SchWhichPairs.hxx +++ b/chart2/source/controller/itemsetwrapper/SchWhichPairs.hxx @@ -146,28 +146,6 @@ const sal_uInt16 nRowWhichPairs[] = 0 }; -const sal_uInt16 nAreaWhichPairs[] = -{ - XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx - XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx - SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx - 0 -}; - -const sal_uInt16 nTextWhichPairs[] = -{ - CHARACTER_WHICHPAIRS, - SCHATTR_TEXT_START, SCHATTR_TEXT_END, - 0 -}; - -const sal_uInt16 nTextOrientWhichPairs[] = -{ - CHARACTER_WHICHPAIRS, - SCHATTR_TEXT_START, SCHATTR_TEXT_END, - 0 -}; - const sal_uInt16 nStatWhichPairs[]= { SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx @@ -196,13 +174,6 @@ const sal_uInt16 nLinePropertyWhichPairs[] = 0 }; -const sal_uInt16 nFillPropertyWhichPairs[] = -{ - XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx - SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx - 0 -}; - const sal_uInt16 nLineAndFillPropertyWhichPairs[] = { XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx @@ -211,15 +182,6 @@ const sal_uInt16 nLineAndFillPropertyWhichPairs[] = 0 }; -const sal_uInt16 nChartStyleWhichPairs[] = -{ - SCHATTR_STYLE_SHAPE, SCHATTR_STYLE_SHAPE, - SCHATTR_NUM_OF_LINES_FOR_BAR, SCHATTR_NUM_OF_LINES_FOR_BAR, - SCHATTR_SPLINE_ORDER, SCHATTR_SPLINE_ORDER, - SCHATTR_SPLINE_RESOLUTION, SCHATTR_SPLINE_RESOLUTION, - 0 -}; - const sal_uInt16 nRegressionCurveWhichPairs[] = { SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109 diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index bea37d729506..126a041fe832 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2434,8 +2434,6 @@ void ChartView::impl_refreshAddIn() } } -static const char* envChartDummyFactory = getenv("CHART_DUMMY_FACTORY"); - void ChartView::createShapes() { SolarMutexGuard aSolarGuard; |