diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-02 09:08:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-02 07:54:20 +0000 |
commit | 3fea7ac94b986ba5e3632d1bbb383c65ced79f1a (patch) | |
tree | 4f882b31963c0fdf87abc373ecdeb57444529048 | |
parent | loplugin:expandablemethods in avmedia (diff) | |
download | core-3fea7ac94b986ba5e3632d1bbb383c65ced79f1a.tar.gz core-3fea7ac94b986ba5e3632d1bbb383c65ced79f1a.zip |
loplugin:unusedfields
Change-Id: I96634c18ba6600f8f7d5d04a162dcd7e1e312923
Reviewed-on: https://gerrit.libreoffice.org/30474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rwxr-xr-x | compilerplugins/clang/unusedfields.py | 6 | ||||
-rw-r--r-- | dbaccess/source/core/recovery/storagexmlstream.cxx | 6 | ||||
-rw-r--r-- | include/oox/dump/xlsbdumper.hxx | 6 | ||||
-rw-r--r-- | include/svx/dlgctrl.hxx | 7 | ||||
-rw-r--r-- | include/svx/fmsrcimp.hxx | 1 | ||||
-rw-r--r-- | include/svx/nbdtmg.hxx | 11 | ||||
-rw-r--r-- | include/svx/sidebar/AreaPropertyPanelBase.hxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/system.hxx | 7 | ||||
-rw-r--r-- | sal/osl/w32/system.h | 7 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgctrls.cxx | 7 | ||||
-rw-r--r-- | svx/source/dialog/SafeModeUI.cxx | 13 | ||||
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 10 | ||||
-rw-r--r-- | svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 3 | ||||
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 2 | ||||
-rw-r--r-- | svx/source/xml/xmlxtexp.cxx | 3 | ||||
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.hxx | 1 |
16 files changed, 16 insertions, 76 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index be5a5ca54351..785b7a9a1881 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -52,7 +52,7 @@ for k, definitions in sourceLocationToDefinitionMap.iteritems(): if len(definitions) > 1: for d in definitions: definitionSet.remove(d) - + untouchedSet = set() for d in definitionSet: if d in callSet: @@ -87,7 +87,7 @@ for d in definitionSet: or srcLoc.startswith("lotuswordpro/source/filter/lwpsdwdrawheader.hxx") or srcLoc.startswith("hwpfilter/") or srcLoc.startswith("embeddedobj/source/inc/") - or srcLoc.startswith("svtools/source/dialogs/insdlg.cxx")): + or srcLoc.startswith("svtools/source/dialogs/insdlg.cxx") or srcLoc.startswith("bridges/")): continue if d[0] in set([ "AtkObjectWrapperClass", "AtkObjectWrapper", "GLOMenu", "GLOAction", "_XRegion", "SalMenuButtonItem", "Vertex", @@ -95,7 +95,7 @@ for d in definitionSet: "ImplPPTParaPropSet", "DataNode"]): continue # unit testing code - if (srcLoc.startswith("cppu/source/uno/check.cxx"): + if srcLoc.startswith("cppu/source/uno/check.cxx"): continue fieldType = definitionToTypeMap[d] if fieldType in set([ "class rptui::OModuleClient" ]): diff --git a/dbaccess/source/core/recovery/storagexmlstream.cxx b/dbaccess/source/core/recovery/storagexmlstream.cxx index e47db023ad8e..39ddf6f80f6e 100644 --- a/dbaccess/source/core/recovery/storagexmlstream.cxx +++ b/dbaccess/source/core/recovery/storagexmlstream.cxx @@ -119,12 +119,6 @@ namespace dbaccess m_pData->xHandler->characters( i_rCharacters ); } - // StorageXMLInputStream_Data - struct StorageXMLInputStream_Data - { - Reference< XParser > xParser; - }; - // StorageXMLInputStream StorageXMLInputStream::StorageXMLInputStream( const Reference<XComponentContext>& i_rContext, const Reference< XStorage >& i_rParentStorage, diff --git a/include/oox/dump/xlsbdumper.hxx b/include/oox/dump/xlsbdumper.hxx index ad692ef721b9..ea553ab87087 100644 --- a/include/oox/dump/xlsbdumper.hxx +++ b/include/oox/dump/xlsbdumper.hxx @@ -55,12 +55,6 @@ protected: using SequenceRecordObjectBase::construct; virtual bool implReadRecordHeader( BinaryInputStream& rBaseStrm, sal_Int64& ornRecId, sal_Int64& ornRecSize ) override; - -private: - typedef std::shared_ptr< SequenceInputStream > SequenceInputStreamRef; - - SequenceInputStreamRef mxBiffStrm; - NameListRef mxErrCodes; }; diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 2bcdfc1ac8d9..fbf9369eb608 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -223,7 +223,6 @@ public: class SAL_WARN_UNUSED SVX_DLLPUBLIC HatchingLB : public ListBox { - XHatchListRef mpList; public: explicit HatchingLB(vcl::Window* pParent, WinBits aWB); }; @@ -232,7 +231,6 @@ public: class SAL_WARN_UNUSED SVX_DLLPUBLIC GradientLB : public ListBox { - XGradientListRef mpList; public: explicit GradientLB(vcl::Window* pParent, WinBits aWB); }; @@ -243,11 +241,6 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC BitmapLB : public ListBox { public: explicit BitmapLB(vcl::Window* pParent, WinBits aWB); - -private: - BitmapEx maBitmapEx; - - XBitmapListRef mpList; }; /************************************************************************/ diff --git a/include/svx/fmsrcimp.hxx b/include/svx/fmsrcimp.hxx index adfce10e28ab..200275c19bb5 100644 --- a/include/svx/fmsrcimp.hxx +++ b/include/svx/fmsrcimp.hxx @@ -158,7 +158,6 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine // the formatter css::uno::Reference< css::util::XNumberFormatsSupplier > m_xFormatSupplier; - css::uno::Reference< css::util::XNumberFormatter > m_xFormatter; CharClass m_aCharacterClassficator; CollatorWrapper m_aStringCompare; diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx index e7117899694b..e1f14e0c6ce1 100644 --- a/include/svx/nbdtmg.hxx +++ b/include/svx/nbdtmg.hxx @@ -79,11 +79,9 @@ class SVX_DLLPUBLIC BulletsSettings public: bool bIsCustomized; rtl::OUString sDescription; - NBType eType; public: - BulletsSettings(NBType eTy) : - bIsCustomized(false), - eType(eTy) + BulletsSettings() : + bIsCustomized(false) {} virtual ~BulletsSettings(){} }; @@ -95,9 +93,8 @@ class SVX_DLLPUBLIC BulletsSettings_Impl:public BulletsSettings vcl::Font aFont; public: - BulletsSettings_Impl(NBType eTy) - : BulletsSettings(eTy) - , cBulletChar(0) + BulletsSettings_Impl() + : cBulletChar(0) {} virtual ~BulletsSettings_Impl() override {} }; diff --git a/include/svx/sidebar/AreaPropertyPanelBase.hxx b/include/svx/sidebar/AreaPropertyPanelBase.hxx index 5a438c6bf0e1..9d7e62199f3e 100644 --- a/include/svx/sidebar/AreaPropertyPanelBase.hxx +++ b/include/svx/sidebar/AreaPropertyPanelBase.hxx @@ -154,8 +154,6 @@ protected: std::unique_ptr< XFillFloatTransparenceItem > mpFloatTransparenceItem; std::unique_ptr< SfxUInt16Item > mpTransparanceItem; - css::uno::Reference<css::frame::XFrame> mxFrame; - DECL_LINK(SelectFillTypeHdl, ListBox&, void ); DECL_LINK(SelectFillAttrHdl, ListBox&, void ); DECL_LINK(ChangeGradientAngle, Edit&, void); diff --git a/sal/osl/unx/system.hxx b/sal/osl/unx/system.hxx index ec7fa483d9a9..320b1c763710 100644 --- a/sal/osl/unx/system.hxx +++ b/sal/osl/unx/system.hxx @@ -334,13 +334,6 @@ int macxp_resolveAlias(char *path, int buflen); # define SA_FAMILY_DECL short sa_family #endif -typedef struct sockaddr_ipx { - SA_FAMILY_DECL; - char sa_netnum[4]; - char sa_nodenum[6]; - unsigned short sa_socket; -} SOCKADDR_IPX; - #define NSPROTO_IPX 1000 #define NSPROTO_SPX 1256 #define NSPROTO_SPXII 1257 diff --git a/sal/osl/w32/system.h b/sal/osl/w32/system.h index e461ad9c5561..4cb8b4e76539 100644 --- a/sal/osl/w32/system.h +++ b/sal/osl/w32/system.h @@ -81,13 +81,6 @@ # define SA_FAMILY_DECL short sa_family # endif - typedef struct sockaddr_ipx { - SA_FAMILY_DECL; - char sa_netnum[4]; - char sa_nodenum[6]; - unsigned short sa_socket; - } SOCKADDR_IPX; - # define NSPROTO_IPX 1000 # define NSPROTO_SPX 1256 # define NSPROTO_SPXII 1257 diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx index 6f29aeb8ebb5..7d48a8846653 100644 --- a/sd/source/ui/dlg/dlgctrls.cxx +++ b/sd/source/ui/dlg/dlgctrls.cxx @@ -32,13 +32,6 @@ using namespace ::sd; struct FadeEffectLBImpl { - // The set id of each entry - std::vector< OUString > maSet; - - // How many variants each transition set has - std::map< OUString, int > maNumVariants; - - std::vector< TransitionPresetPtr > maPresets; }; FadeEffectLB::FadeEffectLB(vcl::Window* pParent, WinBits nStyle) diff --git a/svx/source/dialog/SafeModeUI.cxx b/svx/source/dialog/SafeModeUI.cxx index 15da084119f0..a0afd1dfce2b 100644 --- a/svx/source/dialog/SafeModeUI.cxx +++ b/svx/source/dialog/SafeModeUI.cxx @@ -24,7 +24,7 @@ class SafeModeUI : public ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::frame::XSynchronousDispatch > // => XDispatch! { public: - explicit SafeModeUI(const css::uno::Reference< css::uno::XComponentContext >& xContext); + SafeModeUI(); virtual ~SafeModeUI() override; // css.lang.XServiceInfo @@ -41,15 +41,10 @@ public: virtual css::uno::Any SAL_CALL dispatchWithReturnValue(const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw(css::uno::RuntimeException, std::exception) override; - -private: - css::uno::Reference< css::uno::XComponentContext > mxContext; }; -SafeModeUI::SafeModeUI(const css::uno::Reference<css::uno::XComponentContext>& xContext): - mxContext(xContext) +SafeModeUI::SafeModeUI() { - } SafeModeUI::~SafeModeUI() @@ -90,10 +85,10 @@ css::uno::Any SAL_CALL SafeModeUI::dispatchWithReturnValue(const css::util::URL& extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_comp_svx_SafeModeUI_get_implementation( - css::uno::XComponentContext *context, + css::uno::XComponentContext * /*context*/, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new SafeModeUI(context)); + return cppu::acquire(new SafeModeUI); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 30ead1213a10..740033df05e0 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1152,8 +1152,7 @@ void ColorLB::Modify( const XColorEntry& rEntry, sal_Int32 nPos ) // Fills the listbox (provisional) with strings HatchingLB::HatchingLB( vcl::Window* pParent, WinBits nWinStyle) -: ListBox( pParent, nWinStyle ), - mpList ( nullptr ) +: ListBox( pParent, nWinStyle ) { SetEdgeBlending(true); } @@ -1193,8 +1192,7 @@ void FillAttrLB::Fill( const XHatchListRef &pList ) // Fills the listbox (provisional) with strings GradientLB::GradientLB( vcl::Window* pParent, WinBits aWB) -: ListBox( pParent, aWB ), - mpList(nullptr) +: ListBox( pParent, aWB ) { SetEdgeBlending(true); } @@ -1234,9 +1232,7 @@ void FillAttrLB::Fill( const XGradientListRef &pList ) // BitmapLB Constructor BitmapLB::BitmapLB( vcl::Window* pParent, WinBits aWB) -: ListBox( pParent, aWB ), - maBitmapEx(), - mpList(nullptr) +: ListBox( pParent, aWB ) { SetEdgeBlending(true); } diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index 3de9336d17a7..5f90b223781a 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -92,8 +92,7 @@ AreaPropertyPanelBase::AreaPropertyPanelBase( maImgSquare(SVX_RES(IMG_SQUARE)), maImgLinear(SVX_RES(IMG_LINEAR)), mpFloatTransparenceItem(), - mpTransparanceItem(), - mxFrame(rxFrame) + mpTransparanceItem() { get(mpColorTextFT, "filllabel"); get(mpLbFillType, "fillstyle"); diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 7614dd8f11d9..e1bd4914ed78 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -260,7 +260,7 @@ void BulletsTypeMgr::Init() for (sal_uInt16 i=0;i<DEFAULT_BULLET_TYPES;i++) { - pActualBullets[i] = new BulletsSettings_Impl(NBType::Bullets); + pActualBullets[i] = new BulletsSettings_Impl; pActualBullets[i]->cBulletChar = aDefaultBulletTypes[i]; pActualBullets[i]->aFont =rActBulletFont; pActualBullets[i]->sDescription = SVX_RESSTR( RID_SVXSTR_BULLET_DESCRIPTION_0 + i ); diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx index e7a7962b2f60..7e847fa675a6 100644 --- a/svx/source/xml/xmlxtexp.cxx +++ b/svx/source/xml/xmlxtexp.cxx @@ -136,9 +136,6 @@ public: virtual ~SvxXMLBitmapEntryExporter() override; virtual void exportEntry( const OUString& rStrName, const Any& rValue ) override; - -private: - XMLImageStyle maImageStyle; }; diff --git a/vcl/source/filter/jpeg/JpegReader.hxx b/vcl/source/filter/jpeg/JpegReader.hxx index c3b52fd2abf9..33625198e067 100644 --- a/vcl/source/filter/jpeg/JpegReader.hxx +++ b/vcl/source/filter/jpeg/JpegReader.hxx @@ -41,7 +41,6 @@ struct JPEGCreateBitmapParam unsigned long Y_density; bool bGray; - bool bTopDown; // CreateBitmap method in svtools }; class JPEGReader : public GraphicReader |