From f2517e82904b92989ed7e38a070c18234f460b33 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Sep 2020 22:11:11 +0200 Subject: 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 --- .../controller/itemsetwrapper/SchWhichPairs.hxx | 38 ---------------------- chart2/source/view/main/ChartView.cxx | 2 -- 2 files changed, 40 deletions(-) (limited to 'chart2') 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; -- cgit