diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:07:37 +0000 |
commit | 0649622956431e0a1955cb80d1175025401ab5e5 (patch) | |
tree | cdaa1ff406d232399d53594ad1a32691402ab665 /include | |
parent | sd lok: Include parthash in annotation list and callbacks (diff) | |
download | core-0649622956431e0a1955cb80d1175025401ab5e5.tar.gz core-0649622956431e0a1955cb80d1175025401ab5e5.zip |
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c
Reviewed-on: https://gerrit.libreoffice.org/34508
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/dbaccess/IController.hxx | 14 | ||||
-rw-r--r-- | include/dbaccess/genericcontroller.hxx | 1 | ||||
-rw-r--r-- | include/svx/fmpage.hxx | 3 | ||||
-rw-r--r-- | include/svx/obj3d.hxx | 4 | ||||
-rw-r--r-- | include/svx/postattr.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdpage.hxx | 21 | ||||
-rw-r--r-- | include/tools/poly.hxx | 1 | ||||
-rw-r--r-- | include/tools/rc.hxx | 1 | ||||
-rw-r--r-- | include/unotools/textsearch.hxx | 5 | ||||
-rw-r--r-- | include/vcl/bitmap.hxx | 1 | ||||
-rw-r--r-- | include/vcl/bitmapaccess.hxx | 2 | ||||
-rw-r--r-- | include/vcl/pdfwriter.hxx | 42 | ||||
-rw-r--r-- | include/vcl/salnativewidgets.hxx | 1 | ||||
-rw-r--r-- | include/vcl/splitwin.hxx | 1 | ||||
-rw-r--r-- | include/vcl/timer.hxx | 1 | ||||
-rw-r--r-- | include/vcl/wrkwin.hxx | 1 | ||||
-rw-r--r-- | include/xmloff/shapeimport.hxx | 5 |
17 files changed, 6 insertions, 102 deletions
diff --git a/include/dbaccess/IController.hxx b/include/dbaccess/IController.hxx index 2f3e0ba6ef3d..5890489da5e7 100644 --- a/include/dbaccess/IController.hxx +++ b/include/dbaccess/IController.hxx @@ -89,20 +89,6 @@ namespace dbaui */ virtual bool isCommandEnabled( const OUString& _rCompleteCommandURL ) const = 0; - /** registers a command URL, giving it a unique name - - If you call this with a command URL which is supported by the controller, then - you will simply get the controller's internal numeric shortcut to this command. - - If you call this with a command URL which is not supported by the controller, then - you will get a new ID, which is unique during the lifetime of the controller. - - If the command URL is invalid, or the controller cannot register new commands anymore, - then 0 is returned. - */ - virtual sal_uInt16 - registerCommandURL( const OUString& _rCompleteCommandURL ) = 0; - /** notifyHiContrastChanged will be called when the hicontrast mode changed. @param _bHiContrast <TRUE/> when in hicontrast mode. diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx index bae36a23ec54..e2e389c8d9a6 100644 --- a/include/dbaccess/genericcontroller.hxx +++ b/include/dbaccess/genericcontroller.hxx @@ -461,7 +461,6 @@ namespace dbaui virtual void executeChecked(sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) override; virtual bool isCommandEnabled(sal_uInt16 _nCommandId) const override; virtual bool isCommandEnabled(const OUString& _rCompleteCommandURL) const override; - virtual sal_uInt16 registerCommandURL( const OUString& _rCompleteCommandURL ) override; virtual void notifyHiContrastChanged() override; virtual bool isDataSourceReadOnly() const override; virtual css::uno::Reference< css::frame::XController > getXController() override; diff --git a/include/svx/fmpage.hxx b/include/svx/fmpage.hxx index 3a515163d708..0a9c5672af61 100644 --- a/include/svx/fmpage.hxx +++ b/include/svx/fmpage.hxx @@ -56,8 +56,7 @@ public: virtual SdrPage* Clone() const override; virtual SdrPage* Clone(SdrModel* pNewModel) const override; - virtual void InsertObject(SdrObject* pObj, size_t nPos = SAL_MAX_SIZE, - const SdrInsertReason* pReason=nullptr) override; + virtual void InsertObject(SdrObject* pObj, size_t nPos = SAL_MAX_SIZE) override; virtual SdrObject* RemoveObject(size_t nObjNum) override; diff --git a/include/svx/obj3d.hxx b/include/svx/obj3d.hxx index accfb8f69b1a..72d1849e300e 100644 --- a/include/svx/obj3d.hxx +++ b/include/svx/obj3d.hxx @@ -86,8 +86,8 @@ public: virtual E3dObjList* Clone() const override; - virtual void NbcInsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE, const SdrInsertReason* pReason=nullptr) override; - virtual void InsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE, const SdrInsertReason* pReason=nullptr) override; + virtual void NbcInsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE) override; + virtual void InsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE) override; virtual SdrObject* NbcRemoveObject(size_t nObjNum) override; virtual SdrObject* RemoveObject(size_t nObjNum) override; diff --git a/include/svx/postattr.hxx b/include/svx/postattr.hxx index 19477acbd267..7f9a374cf009 100644 --- a/include/svx/postattr.hxx +++ b/include/svx/postattr.hxx @@ -125,9 +125,7 @@ class SVX_DLLPUBLIC SvxPostItIdItem: public SfxStringItem public: static SfxPoolItem* CreateDefault(); - SvxPostItIdItem( sal_uInt16 nWhich ); - - SvxPostItIdItem( const OUString& rId, sal_uInt16 nWhich ); + SvxPostItIdItem( sal_uInt16 nWhich ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx index 2df53603f833..be9dc8bafa7a 100644 --- a/include/svx/svdpage.hxx +++ b/include/svx/svdpage.hxx @@ -52,21 +52,6 @@ class Color; class SfxStyleSheet; class SvxUnoDrawPagesAccess; -enum class SdrInsertReasonKind { - Undo, /// from Undo - Copy, /// something copied... - ViewCall /// via SdrView::Group(), ... -}; - -class SdrInsertReason { - SdrInsertReasonKind eReason; -public: - SdrInsertReason(SdrInsertReasonKind eR): eReason(eR) {} - - SdrInsertReasonKind GetReason() const { return eReason; } -}; - - // class SdrObjList class SVX_DLLPUBLIC SdrObjList @@ -120,10 +105,8 @@ public: /// recalculate order numbers / ZIndex void RecalcObjOrdNums(); bool IsObjOrdNumsDirty() const { return bObjOrdNumsDirty; } - virtual void NbcInsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE, - const SdrInsertReason* pReason=nullptr); - virtual void InsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE, - const SdrInsertReason* pReason=nullptr); + virtual void NbcInsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE); + virtual void InsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE); /// remove from list without delete virtual SdrObject* NbcRemoveObject(size_t nObjNum); virtual SdrObject* RemoveObject(size_t nObjNum); diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 4f8a6d8119c3..528753a286ae 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -120,7 +120,6 @@ public: Rectangle GetBoundRect() const; double GetSignedArea() const; bool IsInside( const Point& rPt ) const; - bool IsRightOrientated() const; double CalcDistance( sal_uInt16 nPt1, sal_uInt16 nPt2 ); void Clip( const Rectangle& rRect ); void Optimize( PolyOptimizeFlags nOptimizeFlags ); diff --git a/include/tools/rc.hxx b/include/tools/rc.hxx index ece1c646f6dc..20df1fe9b1de 100644 --- a/include/tools/rc.hxx +++ b/include/tools/rc.hxx @@ -62,7 +62,6 @@ protected: // constructors Resource() : m_pResMgr( nullptr ) {} - Resource( const ResId& rResId ); public: #ifdef DBG_UTIL diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index 9efa5d2ead3d..145e6607d49c 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -132,11 +132,6 @@ public: // signed return for API use sal_Int32 GetWildEscChar() const { return static_cast<sal_Int32>(m_cWildEscChar); } - bool IsSrchRelaxed() const { return bLEV_Relaxed; } - int GetLEVOther() const { return nLEV_OtherX; } - int GetLEVShorter() const { return nLEV_ShorterY; } - int GetLEVLonger() const { return nLEV_LongerZ; } - long GetTransliterationFlags() const { return nTransliterationFlags; } }; diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index aff55ce29632..f1b950052526 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -673,7 +673,6 @@ public: int* pCount ); SAL_DLLPRIVATE bool ImplMakeMono( sal_uInt8 cThreshold ); - SAL_DLLPRIVATE bool ImplMakeMonoDither(); SAL_DLLPRIVATE bool ImplMakeGreyscales( sal_uInt16 nGreyscales ); SAL_DLLPRIVATE bool ImplConvertUp( sal_uInt16 nBitCount, Color* pExtColor = nullptr ); SAL_DLLPRIVATE bool ImplConvertDown( sal_uInt16 nBitCount, Color* pExtColor = nullptr ); diff --git a/include/vcl/bitmapaccess.hxx b/include/vcl/bitmapaccess.hxx index 2788333fbcd0..872ca4e3212e 100644 --- a/include/vcl/bitmapaccess.hxx +++ b/include/vcl/bitmapaccess.hxx @@ -134,7 +134,6 @@ public: static BitmapColor GetPixelForN16BitTcLsbMask(ConstScanline pScanline, long nX, const ColorMask& rMask); static BitmapColor GetPixelForN24BitTcBgr(ConstScanline pScanline, long nX, const ColorMask& rMask); static BitmapColor GetPixelForN24BitTcRgb(ConstScanline pScanline, long nX, const ColorMask& rMask); - static BitmapColor GetPixelForN24BitTcMask(ConstScanline pScanline, long nX, const ColorMask& rMask); static BitmapColor GetPixelForN32BitTcAbgr(ConstScanline pScanline, long nX, const ColorMask& rMask); static BitmapColor GetPixelForN32BitTcArgb(ConstScanline pScanline, long nX, const ColorMask& rMask); static BitmapColor GetPixelForN32BitTcBgra(ConstScanline pScanline, long nX, const ColorMask& rMask); @@ -151,7 +150,6 @@ public: static void SetPixelForN16BitTcLsbMask(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); static void SetPixelForN24BitTcBgr(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); static void SetPixelForN24BitTcRgb(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); - static void SetPixelForN24BitTcMask(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); static void SetPixelForN32BitTcAbgr(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); static void SetPixelForN32BitTcArgb(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); static void SetPixelForN32BitTcBgra(Scanline pScanline, long nX, const BitmapColor& rBitmapColor, const ColorMask& rMask); diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index a0346546c43b..6beeea11c0c3 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -1023,37 +1023,6 @@ The following structure describes the permissions used in PDF security */ sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDestID ); - /** Set an outline item's parent - - @param nItem - specififies which item should be reparented. - - @param nNewParent - specifies which outline item will be the item's new parent. - Use 0 for reparenting to top level. - */ - void SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent ); - - /** Set an outline item's title text - - @param nItem - specififies which item should get a new text - - @param rText - sets the title text of the item - */ - void SetOutlineItemText( sal_Int32 nItem, const OUString& rText ); - - /** Set an outline item's destination - - @param nItem - specififies which item should get a new dest - - @param nDestID - specifies the item's new destination - */ - void SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID ); - /** Create a new note on a page @param rRect @@ -1210,17 +1179,6 @@ The following structure describes the permissions used in PDF security */ void SetAlternateText( const OUString& rText ); - /** Sets the time in seconds a page will appear before the next - page is shown automatically - - @param nSeconds - time in seconds the current page will be shown; pass 0 for manual advancement - - @param nPageNr - the page number to apply the autoadvance time to; -1 denotes the current page - */ - void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr ); - /** Sets the transitional effect to be applied when the current page gets shown. @param eType diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index 30997a984911..e60cfe98f956 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -367,7 +367,6 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue bool isBothAligned() const { return isLeftAligned() && isRightAligned(); } bool isNotAligned() const { return !(mnAlignment & (TabitemFlags::LeftAligned | TabitemFlags::RightAligned)); } bool isFirst() const { return bool(mnAlignment & TabitemFlags::FirstInGroup); } - bool isLast() const { return bool(mnAlignment & TabitemFlags::LastInGroup); } const Rectangle& getContentRect() const { return maContentRect; } }; diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx index 9f81d7f65f43..f8ab98e08cbe 100644 --- a/include/vcl/splitwin.hxx +++ b/include/vcl/splitwin.hxx @@ -122,7 +122,6 @@ public: virtual void StartSplit(); virtual void Split(); virtual void SplitResize(); - virtual void AutoHide(); virtual void FadeIn(); virtual void FadeOut(); diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 49d9aa7fb4a3..c7bf7253a2d3 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -56,7 +56,6 @@ public: */ void Invoke( Timer *arg ); void SetInvokeHandler( const Link<Timer *, void>& rLink ) { maInvokeHandler = rLink; } - bool HasInvokeHandler() const { return maInvokeHandler.IsSet(); }; void ClearInvokeHandler() { SetInvokeHandler( Link<Timer *, void>() ); } void SetTimeout( sal_uInt64 nTimeoutMs ); diff --git a/include/vcl/wrkwin.hxx b/include/vcl/wrkwin.hxx index e95a7664ad07..ef8f28ab01cf 100644 --- a/include/vcl/wrkwin.hxx +++ b/include/vcl/wrkwin.hxx @@ -80,7 +80,6 @@ public: @overload void ShowFullScreenMode(bool bFullScreenMode, sal_Int32 nDisplayScreen) */ void ShowFullScreenMode( bool bFullScreenMode = true ); - void EndFullScreenMode() { ShowFullScreenMode( false ); } bool IsFullScreenMode() const { return mbFullScreenMode; } void StartPresentationMode( bool bPresentation, diff --git a/include/xmloff/shapeimport.hxx b/include/xmloff/shapeimport.hxx index bded3697732d..4936b36a7068 100644 --- a/include/xmloff/shapeimport.hxx +++ b/include/xmloff/shapeimport.hxx @@ -330,11 +330,6 @@ public: void addGluePointMapping( css::uno::Reference< css::drawing::XShape >& xShape, sal_Int32 nSourceId, sal_Int32 nDestinnationId ); - /** find mapping for given DestinationID. This allows to extract the original draw:id imported with a draw:glue-point */ - sal_Int32 findGluePointMapping( - const css::uno::Reference< css::drawing::XShape >& xShape, - sal_Int32 nDestinnationId ) const; - /** moves all current DestinationId's for rXShape by n */ void moveGluePointMapping( const css::uno::Reference< css::drawing::XShape >& xShape, const sal_Int32 n ); |