diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-30 15:37:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-31 06:28:41 +0000 |
commit | 3d7325898547c94826cfddc6852d400e84e2dda1 (patch) | |
tree | 894e0f527f0dc42f478b10d34cf95c94e6d74e83 /include | |
parent | fafb2cf4de2eb2de46afab0738b7fd95663c0164 (diff) |
loplugin:unusedmethods
Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c
Reviewed-on: https://gerrit.libreoffice.org/25668
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sfxsids.hrc | 1 | ||||
-rw-r--r-- | include/svl/undo.hxx | 2 | ||||
-rw-r--r-- | include/svtools/xwindowitem.hxx | 53 | ||||
-rw-r--r-- | include/vcl/accel.hxx | 1 | ||||
-rw-r--r-- | include/vcl/bitmapaccess.hxx | 14 | ||||
-rw-r--r-- | include/vcl/dockwin.hxx | 1 | ||||
-rw-r--r-- | include/vcl/keycod.hxx | 1 | ||||
-rw-r--r-- | include/vcl/menu.hxx | 1 | ||||
-rw-r--r-- | include/vcl/salnativewidgets.hxx | 1 | ||||
-rw-r--r-- | include/vcl/toolbox.hxx | 2 |
10 files changed, 2 insertions, 75 deletions
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index c722c51590ba..f5bbec72fe2e 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -127,7 +127,6 @@ #define SID_PRINTDOCDIRECT (SID_SFX_START + 509) #define SID_PICKLIST (SID_SFX_START + 510) #define SID_DOC_SERVICE (SID_SFX_START + 511) -#define SID_ATTR_XWINDOW (SID_SFX_START + 777) #define SID_PLUGIN_MODE (SID_SFX_START + 827) #define SID_EXPORTDOC (SID_SFX_START + 829) #define SID_EXPORTDOCASPDF (SID_SFX_START + 1673) diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 8c54c08d4309..59adae466895 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -181,7 +181,6 @@ namespace svl virtual ~IUndoManager() { }; virtual void SetMaxUndoActionCount( size_t nMaxUndoActionCount ) = 0; - virtual size_t GetMaxUndoActionCount() const = 0; virtual void AddUndoAction( SfxUndoAction *pAction, bool bTryMerg=false ) = 0; @@ -300,7 +299,6 @@ public: // IUndoManager overridables virtual void SetMaxUndoActionCount( size_t nMaxUndoActionCount ) override; - virtual size_t GetMaxUndoActionCount() const override; virtual void AddUndoAction( SfxUndoAction *pAction, bool bTryMerg=false ) override; virtual size_t GetUndoActionCount( bool const i_currentLevel = CurrentLevel ) const override; virtual sal_uInt16 GetUndoActionId() const override; diff --git a/include/svtools/xwindowitem.hxx b/include/svtools/xwindowitem.hxx deleted file mode 100644 index cbb1ee2f6565..000000000000 --- a/include/svtools/xwindowitem.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_XWINDOWITEM_HXX -#define INCLUDED_SVTOOLS_XWINDOWITEM_HXX - - -#include <svtools/svtdllapi.h> - -#include <svl/poolitem.hxx> -#include <toolkit/helper/vclunohelper.hxx> - -#include <com/sun/star/awt/XWindow.hpp> - -namespace vcl { class Window; } - - -class SVT_DLLPUBLIC XWindowItem : public SfxPoolItem -{ - css::uno::Reference< css::awt::XWindow > m_xWin; - - XWindowItem & operator = ( const XWindowItem & ) = delete; - -public: - XWindowItem(); - XWindowItem( const XWindowItem &rItem ); - virtual ~XWindowItem(); - - virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override; - virtual bool operator == ( const SfxPoolItem& rAttr ) const override; - - vcl::Window * GetWindowPtr() const { return VCLUnoHelper::GetWindow( m_xWin ); } -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/accel.hxx b/include/vcl/accel.hxx index f34b44372fc9..0e453ec3933b 100644 --- a/include/vcl/accel.hxx +++ b/include/vcl/accel.hxx @@ -73,7 +73,6 @@ public: sal_uInt16 GetItemCount() const; sal_uInt16 GetItemId( sal_uInt16 nPos ) const; - vcl::KeyCode GetKeyCode( sal_uInt16 nItemId ) const; Accelerator* GetAccel( sal_uInt16 nItemId ) const; diff --git a/include/vcl/bitmapaccess.hxx b/include/vcl/bitmapaccess.hxx index de2c9a71dd77..e0d0a5a2588b 100644 --- a/include/vcl/bitmapaccess.hxx +++ b/include/vcl/bitmapaccess.hxx @@ -113,18 +113,8 @@ public: BitmapColor GetColorWithFallback( double fY, double fX, const BitmapColor& rFallback ) const; private: - - BitmapReadAccess() - {} - - BitmapReadAccess(const BitmapReadAccess&) - : BitmapInfoAccess() - {} - - BitmapReadAccess& operator=(const BitmapReadAccess&) - { - return *this; - } + BitmapReadAccess(const BitmapReadAccess&) = delete; + BitmapReadAccess& operator=(const BitmapReadAccess&) = delete; protected: Scanline* mpScanBuf; diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index 5351f11403fd..789ee9cba7db 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -281,7 +281,6 @@ public: virtual void doDeferredInit(WinBits nBits); protected: DockingWindow( WindowType nType ); - DockingWindow(vcl::Window* pParent, const ResId& rResId); public: DockingWindow(vcl::Window* pParent, WinBits nStyle = WB_STDDOCKWIN); diff --git a/include/vcl/keycod.hxx b/include/vcl/keycod.hxx index 374066e3539c..89e57b988265 100644 --- a/include/vcl/keycod.hxx +++ b/include/vcl/keycod.hxx @@ -39,7 +39,6 @@ private: public: KeyCode() { nKeyCodeAndModifiers = 0; eFunc = KeyFuncType::DONTKNOW; } - KeyCode( const ResId& rResId ); KeyCode( sal_uInt16 nKey, sal_uInt16 nModifier = 0 ); KeyCode( sal_uInt16 nKey, bool bShift, bool bMod1, bool bMod2, bool bMod3 ); KeyCode( KeyFuncType eFunction ); diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 92d4b4e30bff..c4fa65b151c3 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -391,7 +391,6 @@ public: vcl::Window* GetWindow() const { return pWindow; } - void SetAccessibleName( sal_uInt16 nItemId, const OUString& rStr ); OUString GetAccessibleName( sal_uInt16 nItemId ) const; // returns whether the item a position nItemPos is highlighted or not. diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index 88f1ae0cb89b..80aac4e7b620 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -448,7 +448,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/toolbox.hxx b/include/vcl/toolbox.hxx index c7b6a8dae884..95cc60bb447d 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -404,8 +404,6 @@ public: /// Convenience method to hide items (via ShowItem). void HideItem(sal_uInt16 nItemId) { ShowItem( nItemId, false ); } - /// Overload to provide HideItem via command id. - void HideItem(const OUString& rCommand) { ShowItem(rCommand, false); } bool IsItemVisible( sal_uInt16 nItemId ) const; bool IsItemReallyVisible( sal_uInt16 nItemId ) const; |