summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-30 13:57:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-01 08:13:06 +0100
commite7f6fdd5c3805469e1905b11d11d9b01bef477a9 (patch)
tree344fa8bceaad4eca3f4259eabafa86470c70fb51 /compilerplugins
parent7522dc0f5ce4774f8947e588cda5b32e24553b43 (diff)
loplugin:unusedfields
The mnRequestedLength fields in formula/ were introduced in commit 6ef6dd0122b8e44d8547ec31f40def42173e4e41 Author: Kohei Yoshida <kohei.yoshida@collabora.com> Date: Wed Feb 26 14:32:57 2014 -0500 Store the length of originally requested array size prior to trimming. but then partially removed in commit d7f1f91b194da1cb96e66268ce7ef38602aa5754 Author: Noel Grandin <noel@peralex.com> Date: Mon Mar 3 13:29:43 2014 +0200 remove unused code in formula/vectortoken Change-Id: Ic56b6e42682131ee45df7838867145f980f3d601 Reviewed-on: https://gerrit.libreoffice.org/45571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedfields.readonly.results42
-rw-r--r--compilerplugins/clang/unusedfields.untouched.results26
-rw-r--r--compilerplugins/clang/unusedfields.writeonly.results40
3 files changed, 59 insertions, 49 deletions
diff --git a/compilerplugins/clang/unusedfields.readonly.results b/compilerplugins/clang/unusedfields.readonly.results
index de6aa98570ca..c3d55dca208a 100644
--- a/compilerplugins/clang/unusedfields.readonly.results
+++ b/compilerplugins/clang/unusedfields.readonly.results
@@ -46,7 +46,7 @@ bridges/source/jni_uno/jni_java2uno.cxx:150
jni_uno::largest p void *
bridges/source/jni_uno/jni_java2uno.cxx:151
jni_uno::largest a uno_Any
-chart2/source/model/main/DataPoint.hxx:108
+chart2/source/model/main/DataPoint.hxx:107
chart::DataPoint m_bNoParentPropAllowed _Bool
chart2/source/view/inc/GL3DRenderer.hxx:54
chart::opengl3D::MaterialParameters pad float
@@ -364,10 +364,6 @@ sal/rtl/uuid.cxx:64
UUID clock_seq_low sal_uInt8
sal/rtl/uuid.cxx:65
UUID node sal_uInt8 [6]
-sc/inc/attrib.hxx:175
- ScRangeItem aRange class ScRange
-sc/inc/attrib.hxx:214
- ScTableListItem nCount sal_uInt16
sc/inc/compiler.hxx:126
ScRawToken::(anonymous union)::(anonymous) eItem class ScTableRefToken::Item
sc/inc/compiler.hxx:127
@@ -378,7 +374,7 @@ sc/inc/formulagroup.hxx:42
sc::FormulaGroupEntry::(anonymous) mpCells class ScFormulaCell **
sc/inc/reordermap.hxx:21
sc::ColRowReorderMapType maData sc::ColRowReorderMapType::DataType
-sc/source/core/inc/interpre.hxx:104
+sc/source/core/inc/interpre.hxx:105
ScTokenStack pPointer const formula::FormulaToken *[512]
sc/source/filter/inc/autofilterbuffer.hxx:178
oox::xls::FilterColumn mxSettings std::shared_ptr<FilterSettingsBase>
@@ -414,6 +410,10 @@ sd/inc/sdmod.hxx:117
SdModule gImplImpressPropertySetInfoCache SdExtPropertySetInfoCache
sd/inc/sdmod.hxx:118
SdModule gImplDrawPropertySetInfoCache SdExtPropertySetInfoCache
+sd/source/core/CustomAnimationCloner.cxx:69
+ sd::CustomAnimationClonerImpl maSourceNodeVector std::vector<Reference<XAnimationNode> >
+sd/source/core/CustomAnimationCloner.cxx:70
+ sd::CustomAnimationClonerImpl maCloneNodeVector std::vector<Reference<XAnimationNode> >
sd/source/ui/sidebar/MasterPageContainer.cxx:148
sd::sidebar::MasterPageContainer::Implementation maLargePreviewBeingCreated class Image
sd/source/ui/sidebar/MasterPageContainer.cxx:149
@@ -520,7 +520,7 @@ sw/source/uibase/dbui/mmconfigitem.cxx:107
SwMailMergeConfigItem_Impl m_aNeutralGreetingLines std::vector<OUString>
sw/source/uibase/inc/fldmgr.hxx:77
SwInsertField_Data m_aDBDataSource css::uno::Any
-sw/source/uibase/inc/labimg.hxx:50
+sw/source/uibase/inc/labimg.hxx:49
SwLabItem m_aBin class rtl::OUString
toolkit/source/awt/vclxtoolkit.cxx:179
(anonymous namespace)::VCLXToolkit mxSelection css::uno::Reference<css::datatransfer::clipboard::XClipboard>
@@ -564,6 +564,8 @@ unoidl/source/unoidlprovider.cxx:456
unoidl::detail::MapEntry data struct unoidl::detail::(anonymous namespace)::Memory32
unotools/source/config/saveopt.cxx:82
SvtSaveOptions_Impl bROUserAutoSave _Bool
+vcl/inc/PhysicalFontCollection.hxx:71
+ PhysicalFontCollection mbMapNames _Bool
vcl/inc/printerinfomanager.hxx:72
psp::PrinterInfoManager::SystemPrintQueue m_aComment class rtl::OUString
vcl/inc/salwtype.hxx:153
@@ -576,17 +578,17 @@ vcl/inc/salwtype.hxx:202
SalSurroundingTextSelectionChangeEvent mnEnd sal_uLong
vcl/inc/salwtype.hxx:208
SalQueryCharPositionEvent mnCharPos sal_uLong
-vcl/inc/svdata.hxx:268
+vcl/inc/svdata.hxx:267
ImplSVNWFData mnStatusBarLowerRightOffset int
-vcl/inc/svdata.hxx:274
+vcl/inc/svdata.hxx:273
ImplSVNWFData mbMenuBarDockingAreaCommonBG _Bool
-vcl/inc/svdata.hxx:284
+vcl/inc/svdata.hxx:283
ImplSVNWFData mbCenteredTabs _Bool
-vcl/inc/svdata.hxx:285
+vcl/inc/svdata.hxx:284
ImplSVNWFData mbNoActiveTabTextRaise _Bool
-vcl/inc/svdata.hxx:287
+vcl/inc/svdata.hxx:286
ImplSVNWFData mbProgressNeedsErase _Bool
-vcl/inc/svdata.hxx:296
+vcl/inc/svdata.hxx:295
ImplSVNWFData mbRolloverMenubar _Bool
vcl/inc/unx/i18n_status.hxx:56
vcl::I18NStatus m_aCurrentIM class rtl::OUString
@@ -654,6 +656,8 @@ vcl/unx/gtk/gloactiongroup.cxx:28
GLOAction parent_instance GObject
vcl/unx/gtk/glomenu.cxx:20
GLOMenu parent_instance GMenuModel
+writerfilter/source/dmapper/DomainMapper_Impl.hxx:395
+ writerfilter::dmapper::DomainMapper_Impl m_aSaveOpt class SvtSaveOptions
writerfilter/source/ooxml/OOXMLFactory.hxx:61
writerfilter::ooxml::AttributeInfo m_nToken writerfilter::Token_t
writerfilter/source/ooxml/OOXMLFactory.hxx:62
@@ -664,17 +668,17 @@ xmloff/inc/MultiPropertySetHelper.hxx:78
MultiPropertySetHelper aEmptyAny css::uno::Any
xmloff/source/chart/SchXMLChartContext.cxx:447
(anonymous namespace)::NewDonutSeries msStyleName class rtl::OUString
-xmloff/source/chart/SchXMLChartContext.hxx:53
- SeriesDefaultsAndStyles maErrorIndicatorDefault css::uno::Any
xmloff/source/chart/SchXMLChartContext.hxx:54
- SeriesDefaultsAndStyles maErrorCategoryDefault css::uno::Any
+ SeriesDefaultsAndStyles maErrorIndicatorDefault css::uno::Any
xmloff/source/chart/SchXMLChartContext.hxx:55
- SeriesDefaultsAndStyles maConstantErrorLowDefault css::uno::Any
+ SeriesDefaultsAndStyles maErrorCategoryDefault css::uno::Any
xmloff/source/chart/SchXMLChartContext.hxx:56
- SeriesDefaultsAndStyles maConstantErrorHighDefault css::uno::Any
+ SeriesDefaultsAndStyles maConstantErrorLowDefault css::uno::Any
xmloff/source/chart/SchXMLChartContext.hxx:57
- SeriesDefaultsAndStyles maPercentageErrorDefault css::uno::Any
+ SeriesDefaultsAndStyles maConstantErrorHighDefault css::uno::Any
xmloff/source/chart/SchXMLChartContext.hxx:58
+ SeriesDefaultsAndStyles maPercentageErrorDefault css::uno::Any
+xmloff/source/chart/SchXMLChartContext.hxx:59
SeriesDefaultsAndStyles maErrorMarginDefault css::uno::Any
xmloff/source/core/xmlexp.cxx:251
SvXMLExport_Impl maSaveOptions class SvtSaveOptions
diff --git a/compilerplugins/clang/unusedfields.untouched.results b/compilerplugins/clang/unusedfields.untouched.results
index 894a4521605a..308cffd7a734 100644
--- a/compilerplugins/clang/unusedfields.untouched.results
+++ b/compilerplugins/clang/unusedfields.untouched.results
@@ -1,5 +1,5 @@
-basctl/source/inc/dlged.hxx:121
- basctl::DlgEditor pObjFac std::unique_ptr<DlgEdFactory>
+basctl/source/inc/dlged.hxx:122
+ basctl::DlgEditor pObjFac std::unique_ptr<DlgEdFactory, o3tl::default_delete<DlgEdFactory> >
basic/qa/cppunit/basictest.hxx:27
MacroSnippet maDll class BasicDLL
basic/source/runtime/dllmgr.hxx:48
@@ -24,7 +24,7 @@ connectivity/source/drivers/evoab2/EApi.h:126
(anonymous) ext char *
connectivity/source/drivers/mork/MDatabaseMetaData.hxx:29
connectivity::mork::ODatabaseMetaData m_pMetaDataHelper std::unique_ptr<MDatabaseMetaDataHelper>
-cppu/source/threadpool/threadpool.cxx:377
+cppu/source/threadpool/threadpool.cxx:355
_uno_ThreadPool dummy sal_Int32
cppu/source/typelib/typelib.cxx:61
AlignSize_Impl nInt16 sal_Int16
@@ -34,8 +34,6 @@ emfio/source/emfuno/xemfparser.cxx:59
emfio::emfreader::XEmfParser context_ uno::Reference<uno::XComponentContext>
extensions/source/scanner/scanner.hxx:44
ScannerManager maProtector osl::Mutex
-include/comphelper/MasterPropertySet.hxx:38
- comphelper::SlaveData mxSlave css::uno::Reference<css::beans::XPropertySet>
include/drawinglayer/primitive2d/textlayoutdevice.hxx:61
drawinglayer::primitive2d::TextLayouterDevice maSolarGuard class SolarMutexGuard
include/editeng/unotext.hxx:608
@@ -113,7 +111,7 @@ pyuno/source/module/pyuno_impl.hxx:224
pyuno/source/module/pyuno_impl.hxx:324
pyuno::stRuntimeImpl ob_base PyObject
reportdesign/source/ui/inc/ReportWindow.hxx:54
- rptui::OReportWindow m_pObjFac ::std::unique_ptr<DlgEdFactory>
+ rptui::OReportWindow m_pObjFac std::unique_ptr<DlgEdFactory, o3tl::default_delete<DlgEdFactory> >
sal/osl/unx/thread.cxx:90
osl_thread_priority_st m_Highest int
sal/osl/unx/thread.cxx:91
@@ -128,8 +126,12 @@ sal/osl/unx/thread.cxx:112
osl_thread_global_st m_priority struct osl_thread_priority_st
sc/inc/formulalogger.hxx:42
sc::FormulaLogger maMessages std::vector<OUString>
+sc/inc/interpretercontext.hxx:23
+ ScInterpreterContext mrDoc const class ScDocument &
sc/qa/unit/ucalc_column.cxx:103
aInputs aName const char *
+sc/source/core/data/formulacell.cxx:1741
+ (anonymous namespace)::StackCleaner pInt std::unique_ptr<ScInterpreter>
sc/source/filter/inc/sheetdatacontext.hxx:61
oox::xls::SheetDataContext aReleaser class SolarMutexReleaser
sc/source/ui/inc/docsh.hxx:439
@@ -152,12 +154,6 @@ sd/source/ui/view/ViewShellBase.cxx:194
sd::ViewShellBase::Implementation mpPageCacheManager std::shared_ptr<slidesorter::cache::PageCacheManager>
sfx2/source/doc/doctempl.cxx:115
DocTempl::DocTempl_EntryData_Impl mxObjShell class SfxObjectShellLock
-sfx2/source/inc/shellimpl.hxx:33
- SfxObjectShellArr_Impl maData SfxObjectShellArr_Impl::DataType
-sfx2/source/inc/shellimpl.hxx:54
- SfxViewFrameArr_Impl maData SfxViewFrameArr_Impl::DataType
-sfx2/source/inc/shellimpl.hxx:75
- SfxViewShellArr_Impl maData SfxViewShellArr_Impl::DataType
starmath/inc/smmod.hxx:69
SmModule mpLocSymbolData std::unique_ptr<SmLocalizedSymbolData>
starmath/inc/view.hxx:218
@@ -196,8 +192,6 @@ unoidl/source/unoidlprovider.cxx:673
unoidl::detail::(anonymous namespace)::UnoidlCursor reference2_ rtl::Reference<UnoidlModuleEntity>
vcl/inc/opengl/zone.hxx:46
OpenGLVCLContextZone aZone class OpenGLZone
-vcl/inc/svdata.hxx:149
- ImplSVAppData mbShutdownDelayed _Bool
vcl/inc/unx/cpdmgr.hxx:60
psp::CPDPrinterOption name class rtl::OUString
vcl/inc/unx/cpdmgr.hxx:61
@@ -214,7 +208,3 @@ vcl/source/uitest/uno/uitest_uno.cxx:35
UITestUnoObj mpUITest std::unique_ptr<UITest>
vcl/unx/gtk/a11y/atkhypertext.cxx:29
(anonymous) atk_hyper_link AtkHyperlink
-writerfilter/source/rtftok/rtfdocumentimpl.hxx:663
- writerfilter::rtftok::RTFDocumentImpl m_hasLHeader _Bool
-writerfilter/source/rtftok/rtfdocumentimpl.hxx:666
- writerfilter::rtftok::RTFDocumentImpl m_hasLFooter _Bool
diff --git a/compilerplugins/clang/unusedfields.writeonly.results b/compilerplugins/clang/unusedfields.writeonly.results
index 942a5357c753..d34eef064553 100644
--- a/compilerplugins/clang/unusedfields.writeonly.results
+++ b/compilerplugins/clang/unusedfields.writeonly.results
@@ -64,7 +64,7 @@ chart2/inc/ChartModel.hxx:483
chart::ChartModel mnEnd sal_Int32
chart2/source/controller/main/ElementSelector.hxx:37
chart::ListBoxEntryData nHierarchyDepth sal_Int32
-chart2/source/inc/MediaDescriptorHelper.hxx:85
+chart2/source/inc/MediaDescriptorHelper.hxx:82
apphelper::MediaDescriptorHelper ReadOnly _Bool
chart2/source/model/inc/BaseCoordinateSystem.hxx:118
chart::BaseCoordinateSystem m_xContext css::uno::Reference<css::uno::XComponentContext>
@@ -174,7 +174,7 @@ desktop/qa/desktop_lib/test_desktop_lib.cxx:176
DesktopLOKTest m_bModified _Bool
desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx:119
dp_gui::UpdateCommandEnv m_installThread ::rtl::Reference<UpdateInstallDialog::Thread>
-desktop/unx/source/splashx.c:369
+desktop/unx/source/splashx.c:371
input_mode long
drawinglayer/source/tools/emfpbrush.hxx:104
emfplushelper::EMFPBrush wrapMode sal_Int32
@@ -194,6 +194,8 @@ drawinglayer/source/tools/emfppen.hxx:63
emfplushelper::EMFPPen customStartCap struct emfplushelper::EMFPCustomLineCap *
drawinglayer/source/tools/emfppen.hxx:65
emfplushelper::EMFPPen customEndCap struct emfplushelper::EMFPCustomLineCap *
+editeng/inc/editdoc.hxx:486
+ EditLine nCrsrHeight sal_uInt16
embeddedobj/source/inc/oleembobj.hxx:127
OleEmbeddedObject m_nTargetState sal_Int32
embeddedobj/source/inc/oleembobj.hxx:139
@@ -244,6 +246,10 @@ include/connectivity/OSubComponent.hxx:54
connectivity::OSubComponent m_xParent css::uno::Reference<css::uno::XInterface>
include/editeng/adjustitem.hxx:39
SvxAdjustItem bLeft _Bool
+include/formula/vectortoken.hxx:65
+ formula::SingleVectorRefToken mnRequestedLength size_t
+include/formula/vectortoken.hxx:85
+ formula::DoubleVectorRefToken mnRequestedLength size_t
include/LibreOfficeKit/LibreOfficeKit.h:108
_LibreOfficeKitDocumentClass nSize size_t
include/opencl/openclwrapper.hxx:36
@@ -266,6 +272,8 @@ include/svx/srchdlg.hxx:231
SvxSearchDialog pSearchController class SvxSearchController *
include/svx/srchdlg.hxx:232
SvxSearchDialog pOptionsController class SvxSearchController *
+include/vcl/opengl/OpenGLContext.hxx:41
+ GLWindow bMultiSampleSupported _Bool
include/vcl/salnativewidgets.hxx:415
ToolbarValue mbIsTopDockingArea _Bool
include/vcl/salnativewidgets.hxx:463
@@ -310,7 +318,7 @@ sal/rtl/alloc_cache.hxx:36
rtl_cache_stat_type m_mem_alloc sal_Size
sal/rtl/alloc_cache.hxx:151
rtl_cache_st m_cpu_stats struct rtl_cache_stat_type
-sal/rtl/math.cxx:996
+sal/rtl/math.cxx:1004
md union sal_math_Double
sal/textenc/tcvtutf7.cxx:96
ImplUTF7ToUCContextData mbShifted _Bool
@@ -328,26 +336,28 @@ sal/textenc/tcvtutf7.cxx:396
ImplUTF7FromUCContextData mnBitBuffer sal_uInt32
sal/textenc/tcvtutf7.cxx:397
ImplUTF7FromUCContextData mnBufferBits sal_uInt32
+sc/inc/chartarr.hxx:61
+ ScChartArray aName class rtl::OUString
sc/inc/compiler.hxx:258
ScCompiler::AddInMap pODFF const char *
sc/inc/compiler.hxx:259
ScCompiler::AddInMap pEnglish const char *
sc/inc/compiler.hxx:261
ScCompiler::AddInMap pUpper const char *
+sc/inc/document.hxx:2483
+ ScMutationDisable mpDocument class ScDocument *
sc/inc/pivot.hxx:74
ScDPLabelData mnFlags sal_Int32
sc/inc/pivot.hxx:77
ScDPLabelData mbIsValue _Bool
sc/source/core/data/cellvalues.cxx:25
sc::(anonymous namespace)::BlockPos mnEnd size_t
-sc/source/core/data/column4.cxx:1291
+sc/source/core/data/column4.cxx:1290
(anonymous namespace)::StartListeningFormulaCellsHandler mnStartRow SCROW
-sc/source/core/data/document.cxx:1257
+sc/source/core/data/document.cxx:1269
(anonymous namespace)::BroadcastRecalcOnRefMoveHandler aSwitch sc::AutoCalcSwitch
-sc/source/core/data/document.cxx:1258
+sc/source/core/data/document.cxx:1270
(anonymous namespace)::BroadcastRecalcOnRefMoveHandler aBulk class ScBulkBroadcast
-sc/source/core/data/formulacell.cxx:1756
- StackCleaner pInt class ScInterpreter *
sc/source/filter/excel/xltoolbar.hxx:23
TBCCmd cmdID sal_uInt16
sc/source/filter/excel/xltoolbar.hxx:24
@@ -380,9 +390,9 @@ sc/source/filter/inc/exp_op.hxx:52
ExportBiff5 pExcRoot struct RootData *
sc/source/filter/inc/imp_op.hxx:88
ImportExcel::LastFormula mpCell class ScFormulaCell *
-sc/source/filter/inc/orcusinterface.hxx:352
+sc/source/filter/inc/orcusinterface.hxx:355
ScOrcusStyles::xf mnStyleXf size_t
-sc/source/filter/inc/orcusinterface.hxx:370
+sc/source/filter/inc/orcusinterface.hxx:373
ScOrcusStyles::cell_style mnBuiltInId size_t
sc/source/filter/inc/root.hxx:95
LOTUS_ROOT eActType enum Lotus123Typ
@@ -398,6 +408,8 @@ sc/source/filter/xml/xmldrani.hxx:75
ScXMLDatabaseRangeContext bIsSelection _Bool
sc/source/filter/xml/xmlexternaltabi.hxx:113
ScXMLExternalRefCellContext mnCellType sal_Int16
+sc/source/ui/inc/AccessibleText.hxx:195
+ ScAccessiblePreviewHeaderCellTextData mbRowHeader _Bool
sc/source/ui/inc/datastream.hxx:108
sc::DataStream mnSettings sal_uInt32
sc/source/ui/inc/filtdlg.hxx:198
@@ -436,6 +448,8 @@ sfx2/source/inc/appdata.hxx:75
SfxAppData_Impl pTriggerTopic class SfxDdeTriggerTopic_Impl *
sfx2/source/inc/appdata.hxx:76
SfxAppData_Impl pDdeService2 class DdeService *
+sfx2/source/inc/workwin.hxx:50
+ SfxObjectBar_Impl nPos sal_uInt16
sfx2/source/view/classificationcontroller.cxx:59
sfx2::ClassificationCategoriesController m_aPropertyListener class sfx2::ClassificationPropertyListener
slideshow/source/engine/opengl/TransitionImpl.hxx:296
@@ -444,6 +458,8 @@ slideshow/source/engine/opengl/TransitionImpl.hxx:297
Vertex texcoord glm::vec2
slideshow/source/engine/slideshowimpl.cxx:1044
(anonymous namespace)::SlideShowImpl::PrefetchPropertiesFunc mpSlideShowImpl class (anonymous namespace)::SlideShowImpl *const
+soltools/cpp/cpp.h:143
+ macroValidator pMacro Nlist *
starmath/inc/view.hxx:158
SmCmdBoxWindow aController class SmEditController
store/source/storbase.hxx:248
@@ -568,9 +584,9 @@ vcl/source/filter/jpeg/Exif.hxx:56
Exif::ExifIFD type sal_uInt16
vcl/source/filter/jpeg/Exif.hxx:57
Exif::ExifIFD count sal_uInt32
-vcl/unx/generic/app/wmadaptor.cxx:1270
- _mwmhints input_mode long
vcl/unx/generic/app/wmadaptor.cxx:1271
+ _mwmhints input_mode long
+vcl/unx/generic/app/wmadaptor.cxx:1272
_mwmhints status unsigned long
vcl/unx/gtk/a11y/atkwrapper.hxx:45
AtkObjectWrapper aParent AtkObject