Kaydet (Commit) a792aa2c authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods toolkit,package

Change-Id: I83618cd2fd12fb0c1691dc7255fc7192e68649cd
Reviewed-on: https://gerrit.libreoffice.org/17031Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst bd8e8db2
...@@ -31,13 +31,9 @@ namespace toolkit ...@@ -31,13 +31,9 @@ namespace toolkit
public: public:
virtual ~ScrollableInterface() {} virtual ~ScrollableInterface() {}
virtual void SetScrollWidth( long nWidth ) = 0; virtual void SetScrollWidth( long nWidth ) = 0;
virtual long GetScrollWidth() = 0;
virtual void SetScrollHeight( long nHeight ) = 0; virtual void SetScrollHeight( long nHeight ) = 0;
virtual long GetScrollHeight() = 0;
virtual void SetScrollLeft( long nLeft ) = 0; virtual void SetScrollLeft( long nLeft ) = 0;
virtual long GetScrollLeft() = 0;
virtual void SetScrollTop( long Top ) = 0; virtual void SetScrollTop( long Top ) = 0;
virtual long GetScrollTop() = 0;
}; };
template < class T > template < class T >
...@@ -61,13 +57,9 @@ namespace toolkit ...@@ -61,13 +57,9 @@ namespace toolkit
virtual ~ScrollableWrapper(); virtual ~ScrollableWrapper();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
virtual void SetScrollWidth( long nWidth ) SAL_OVERRIDE; virtual void SetScrollWidth( long nWidth ) SAL_OVERRIDE;
virtual long GetScrollWidth() SAL_OVERRIDE { return maScrollArea.Width(); }
virtual void SetScrollHeight( long nHeight ) SAL_OVERRIDE; virtual void SetScrollHeight( long nHeight ) SAL_OVERRIDE;
virtual long GetScrollHeight() SAL_OVERRIDE { return maScrollArea.Height(); }
virtual void SetScrollLeft( long nLeft ) SAL_OVERRIDE; virtual void SetScrollLeft( long nLeft ) SAL_OVERRIDE;
virtual long GetScrollLeft() SAL_OVERRIDE { return mnScrollPos.X(); }
virtual void SetScrollTop( long Top ) SAL_OVERRIDE; virtual void SetScrollTop( long Top ) SAL_OVERRIDE;
virtual long GetScrollTop() SAL_OVERRIDE { return mnScrollPos.Y() ; }
void setScrollVisibility( ScrollBarVisibility rState ); void setScrollVisibility( ScrollBarVisibility rState );
DECL_LINK( ScrollBarHdl, ScrollBar* ); DECL_LINK( ScrollBarHdl, ScrollBar* );
......
...@@ -84,8 +84,6 @@ public: ...@@ -84,8 +84,6 @@ public:
void SetOutputDevice( OutputDevice* pOutDev ); void SetOutputDevice( OutputDevice* pOutDev );
OutputDevice* GetOutputDevice() const { return mpOutputDevice; } OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
const vcl::Font& GetFont() const { return maFont; }
// ::com::sun::star::uno::XInterface // ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakObject::acquire(); } void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakObject::acquire(); }
......
...@@ -49,7 +49,6 @@ public: ...@@ -49,7 +49,6 @@ public:
VCLXRegion(); VCLXRegion();
virtual ~VCLXRegion(); virtual ~VCLXRegion();
void SetRegion( const vcl::Region& rRegion ) { maRegion = rRegion; }
const vcl::Region& GetRegion() const { return maRegion; } const vcl::Region& GetRegion() const { return maRegion; }
// ::com::sun::star::uno::XInterface // ::com::sun::star::uno::XInterface
......
...@@ -42,9 +42,8 @@ private: ...@@ -42,9 +42,8 @@ private:
const bool m_bWHWND; const bool m_bWHWND;
protected: protected:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar> mxMenuBar; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar> mxMenuBar;
bool isSystemDependentWindowPeer() const { return m_bWHWND; }
virtual vcl::Window* GetWindowImpl() = 0; virtual vcl::Window* GetWindowImpl() = 0;
virtual ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl() = 0; virtual ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl() = 0;
......
...@@ -216,7 +216,6 @@ typedef ::cppu::AggImplInheritanceHelper3 < UnoControlContainer ...@@ -216,7 +216,6 @@ typedef ::cppu::AggImplInheritanceHelper3 < UnoControlContainer
class ControlContainerBase : public ContainerControl_IBase class ControlContainerBase : public ContainerControl_IBase
{ {
::Size ImplGetSizePixel( const ::Size& inSize );
protected: protected:
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
bool mbSizeModified; bool mbSizeModified;
......
...@@ -1055,8 +1055,6 @@ public: ...@@ -1055,8 +1055,6 @@ public:
protected: protected:
virtual void ImplSetPeerProperty( const OUString& rPropName, const ::com::sun::star::uno::Any& rVal ) SAL_OVERRIDE; virtual void ImplSetPeerProperty( const OUString& rPropName, const ::com::sun::star::uno::Any& rVal ) SAL_OVERRIDE;
virtual void updateFromModel() SAL_OVERRIDE; virtual void updateFromModel() SAL_OVERRIDE;
ActionListenerMultiplexer& getActionListeners();
ItemListenerMultiplexer& getItemListeners();
}; };
......
...@@ -43,21 +43,6 @@ public: ...@@ -43,21 +43,6 @@ public:
const sal_Int8 * getCurrentPos () { return mpBuffer + mnCurrent; } const sal_Int8 * getCurrentPos () { return mpBuffer + mnCurrent; }
// XInputStream chained // XInputStream chained
sal_Int32 SAL_CALL readBytes( com::sun::star::uno::Sequence< sal_Int8 >& aData,
sal_Int32 nBytesToRead )
throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
{
if ( nBytesToRead < 0)
throw com::sun::star::io::BufferSizeExceededException();
if (nBytesToRead + mnCurrent > mnEnd)
nBytesToRead = mnEnd - mnCurrent;
aData.realloc ( nBytesToRead );
memcpy( aData.getArray(), mpBuffer + mnCurrent, nBytesToRead );
mnCurrent += nBytesToRead;
return nBytesToRead;
}
void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
......
...@@ -56,22 +56,6 @@ public: ...@@ -56,22 +56,6 @@ public:
virtual void SetWindowInterface( vcl::Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> xIFace ) SAL_OVERRIDE; virtual void SetWindowInterface( vcl::Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> xIFace ) SAL_OVERRIDE;
void WindowDestroyed( vcl::Window* pWindow ) SAL_OVERRIDE; void WindowDestroyed( vcl::Window* pWindow ) SAL_OVERRIDE;
void WindowEvent_Move( vcl::Window* pWindow );
void WindowEvent_Resize( vcl::Window* pWindow );
void WindowEvent_Show( vcl::Window* pWindow, bool bShow );
void WindowEvent_Close( vcl::Window* pWindow );
void WindowEvent_Minimize( vcl::Window* pWindow );
void WindowEvent_Normalize( vcl::Window* pWindow );
void WindowEvent_Activate( vcl::Window* pWindow, bool bActivated );
void WindowEvent_MouseButtonUp( vcl::Window* pWindow, const MouseEvent& rEvt );
void WindowEvent_MouseButtonDown( vcl::Window* pWindow, const MouseEvent& rEvt );
void WindowEvent_MouseMove( vcl::Window* pWindow, const MouseEvent& rEvt );
void WindowEvent_Command( vcl::Window* pWindow, const CommandEvent& rCEvt );
void WindowEvent_KeyInput( vcl::Window* pWindow, const KeyEvent& rEvt );
void WindowEvent_KeyUp( vcl::Window* pWindow, const KeyEvent& rEvt );
void WindowEvent_GetFocus( vcl::Window* pWindow );
void WindowEvent_LoseFocus( vcl::Window* pWindow );
void WindowEvent_Paint( vcl::Window* pWindow, const Rectangle& rRect );
// Accessibility // Accessibility
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment