summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-18 09:37:44 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 10:20:31 +0200
commite18b08363a939b35e7f5dc435e606d2c62bddebd (patch)
tree6318e03a67fd2dfbbd29b88b3de36ad7e9fd6292 /include
parent20ff8cc5c3534d149b18b9776ab964324e70fdfd (diff)
loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
Diffstat (limited to 'include')
-rw-r--r--include/canvas/canvastools.hxx3
-rw-r--r--include/comphelper/accimplaccess.hxx32
-rw-r--r--include/drawinglayer/primitive2d/baseprimitive2d.hxx10
-rw-r--r--include/drawinglayer/primitive3d/baseprimitive3d.hxx10
-rw-r--r--include/oox/core/fastparser.hxx7
-rw-r--r--include/oox/core/xmlfilterbase.hxx6
-rw-r--r--include/sfx2/titledockwin.hxx29
-rw-r--r--include/svl/ilstitem.hxx1
-rw-r--r--include/svl/ownlist.hxx3
-rw-r--r--include/tools/appendunixshellword.hxx47
-rw-r--r--include/tools/gen.hxx15
-rw-r--r--include/unotools/confignode.hxx3
-rw-r--r--include/vcl/bitmap.hxx1
-rw-r--r--include/vcl/builder.hxx13
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx5
-rw-r--r--include/vcl/svpforlokit.hxx26
16 files changed, 0 insertions, 211 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx
index 33f9060c3909..67119cf914b8 100644
--- a/include/canvas/canvastools.hxx
+++ b/include/canvas/canvastools.hxx
@@ -102,9 +102,6 @@ namespace canvas
*
*/
- // mickey's math tricks...
- inline unsigned int pow2( unsigned int c ) { return 0x1 << c; }
-
/** Round given floating point value down to next integer
*/
inline sal_Int32 roundDown( const double& rVal )
diff --git a/include/comphelper/accimplaccess.hxx b/include/comphelper/accimplaccess.hxx
index 8541d0d482f0..82be8db33ca6 100644
--- a/include/comphelper/accimplaccess.hxx
+++ b/include/comphelper/accimplaccess.hxx
@@ -75,10 +75,6 @@ namespace comphelper
*/
sal_Int64 implGetForeignControlledStates( ) const;
- /// sets the accessible parent component
- void setAccessibleParent(
- const css::uno::Reference< css::accessibility::XAccessible >& _rxAccParent );
-
protected:
OAccessibleImplementationAccess( );
virtual ~OAccessibleImplementationAccess( );
@@ -87,34 +83,6 @@ namespace comphelper
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& _rIdentifier ) throw (css::uno::RuntimeException, std::exception) override;
public:
- /** tries to access the implementation of an OAccessibleImplementationAccess derivee which is known as
- interface only.
-
- @param _rxComponent
- is the component which should be examined.
- @return
- the pointer to the implementation, if successful. The only known error condition so far
- is an invalid context (which means it is <NULL/>, or the implementation is not derived
- from OAccessibleImplementationAccess, or retrieving the implementation failed).
- */
- static OAccessibleImplementationAccess* getImplementation(
- const css::uno::Reference< css::accessibility::XAccessibleContext >& _rxComponent
- );
-
- /** sets the parent for a derived implementation
-
- @param _rxComponent
- is the component which's new parent should be set
- @param _rxNewParent
- is the new parent of the component
- @return
- <TRUE/> in case of success, <FALSE/> otherwise. For error condition please look at
- <method>getImplementation</method>.
- */
- static bool setAccessibleParent(
- const css::uno::Reference< css::accessibility::XAccessibleContext >& _rxComponent,
- const css::uno::Reference< css::accessibility::XAccessible >& _rxNewParent
- );
private:
COMPHELPER_DLLPRIVATE static const css::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
diff --git a/include/drawinglayer/primitive2d/baseprimitive2d.hxx b/include/drawinglayer/primitive2d/baseprimitive2d.hxx
index c2974215be8d..f8f30b6cb6bf 100644
--- a/include/drawinglayer/primitive2d/baseprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/baseprimitive2d.hxx
@@ -282,9 +282,6 @@ namespace drawinglayer
{
namespace primitive2d
{
- /// support to handle a sequence of primitives as stl vector and convert it during creation
- Primitive2DSequence DRAWINGLAYER_DLLPUBLIC Primitive2DVectorToPrimitive2DSequence(const Primitive2DContainer& rSource, bool bInvert = false);
-
/// get B2DRange from a given Primitive2DReference
basegfx::B2DRange DRAWINGLAYER_DLLPUBLIC getB2DRangeFromPrimitive2DReference(const Primitive2DReference& rCandidate, const geometry::ViewInformation2D& aViewInformation);
@@ -296,13 +293,6 @@ namespace drawinglayer
/// compare two Primitive2DReferences for equality, uses arePrimitive2DReferencesEqual internally
bool DRAWINGLAYER_DLLPUBLIC arePrimitive2DSequencesEqual(const Primitive2DSequence& rA, const Primitive2DSequence& rB);
- /// concatenate sequence
- void DRAWINGLAYER_DLLPUBLIC appendPrimitive2DSequenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DSequence& rSource);
- void DRAWINGLAYER_DLLPUBLIC appendPrimitive2DSequenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DContainer& rSource);
-
- /// concatenate single Primitive2D
- void DRAWINGLAYER_DLLPUBLIC appendPrimitive2DReferenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DReference& rSource);
-
OUString DRAWINGLAYER_DLLPUBLIC idToString(sal_uInt32 nId);
} // end of namespace primitive2d
diff --git a/include/drawinglayer/primitive3d/baseprimitive3d.hxx b/include/drawinglayer/primitive3d/baseprimitive3d.hxx
index fe6b5a1fa102..79c7efe779e0 100644
--- a/include/drawinglayer/primitive3d/baseprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/baseprimitive3d.hxx
@@ -64,7 +64,6 @@ namespace drawinglayer { namespace primitive3d {
Primitive3DContainer( std::initializer_list<Primitive3DReference> init ) : vector(init) {}
void append(const Primitive3DContainer& rSource);
- void append(const Primitive3DSequence& rSource);
void append(Primitive3DContainer&& rSource);
Primitive3DContainer& operator=(const Primitive3DContainer& r) { vector::operator=(r); return *this; }
Primitive3DContainer& operator=(const Primitive3DContainer&& r) { vector::operator=(r); return *this; }
@@ -209,15 +208,6 @@ namespace drawinglayer
*/
bool DRAWINGLAYER_DLLPUBLIC arePrimitive3DReferencesEqual(const Primitive3DReference& rA, const Primitive3DReference& rB);
- /// compare two Primitive3DReferences for equality, uses arePrimitive3DReferencesEqual internally
- bool DRAWINGLAYER_DLLPUBLIC arePrimitive3DSequencesEqual(const Primitive3DSequence& rA, const Primitive3DSequence& rB);
-
- /// concatenate sequence
- void DRAWINGLAYER_DLLPUBLIC appendPrimitive3DSequenceToPrimitive3DSequence(Primitive3DSequence& rDest, const Primitive3DContainer& rSource);
-
- /// concatenate single Primitive3D
- void DRAWINGLAYER_DLLPUBLIC appendPrimitive3DReferenceToPrimitive3DSequence(Primitive3DSequence& rDest, const Primitive3DReference& rSource);
-
} // end of namespace primitive3d
} // end of namespace drawinglayer
diff --git a/include/oox/core/fastparser.hxx b/include/oox/core/fastparser.hxx
index 497bb0029166..311eefa0b290 100644
--- a/include/oox/core/fastparser.hxx
+++ b/include/oox/core/fastparser.hxx
@@ -75,13 +75,6 @@ public:
void parseStream( StorageBase& rStorage, const OUString& rStreamName, bool bCloseStream = false )
throw( css::xml::sax::SAXException, css::io::IOException, css::uno::RuntimeException );
- OUString getNamespaceURL( const OUString& rPrefix )
- throw( css::lang::IllegalArgumentException, css::uno::RuntimeException );
-
- bool hasNamespaceURL( const OUString& rPrefix ) const;
-
- sal_Int32 getNamespaceId( const OUString& aUrl );
-
css::uno::Reference< css::xml::sax::XFastTokenHandler >
getTokenHandler() const { return mxTokenHandler; }
diff --git a/include/oox/core/xmlfilterbase.hxx b/include/oox/core/xmlfilterbase.hxx
index a93a50802e0d..6dc4c3b83e99 100644
--- a/include/oox/core/xmlfilterbase.hxx
+++ b/include/oox/core/xmlfilterbase.hxx
@@ -220,12 +220,6 @@ public:
*/
XmlFilterBase& exportDocumentProperties( css::uno::Reference< css::document::XDocumentProperties > xProperties );
- OUString getNamespaceURL( const OUString& rPrefix );
-
- bool hasNamespaceURL( const OUString& rPrefix ) const;
-
- sal_Int32 getNamespaceId( const OUString& rUrl );
-
void importDocumentProperties();
FastParser* createParser() const;
diff --git a/include/sfx2/titledockwin.hxx b/include/sfx2/titledockwin.hxx
index 79603bb1b2aa..ebae6747d3f0 100644
--- a/include/sfx2/titledockwin.hxx
+++ b/include/sfx2/titledockwin.hxx
@@ -44,31 +44,6 @@ namespace sfx2
*/
void SetTitle( const OUString& i_rTitle );
- /** adds a drop down item to the toolbox. Usually, this is used to add some kind of menu to the toolbox.
-
- @param i_rItemText
- the text to display for the item
- @param i_nHelpId
- the help ID for the new toolbox item
- @param i_rCallback
- the callback to invoke when the drop item has been clicked
- @return
- the ID of the newly created toolbox item
- */
- sal_uInt16 AddDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<ToolBox *, void>& i_rCallback )
- {
- return impl_addDropDownToolBoxItem( i_rItemText, i_nHelpId, i_rCallback );
- }
-
- void SetEndDockingHdl( const Link<TitledDockingWindow*,void>& i_rEndDockingHdl ) { m_aEndDockingHdl = i_rEndDockingHdl; }
-
- /** resets the toolbox. Upon return, the only item in the toolbox is the closer.
- */
- void ResetToolBox()
- {
- impl_resetToolBox();
- }
-
/** returns the content window, which is to be used as parent window for any content to be displayed
in the docking window.
*/
@@ -100,10 +75,6 @@ namespace sfx2
*/
void impl_resetToolBox();
- /** internal version of AddDropDownToolBoxItem
- */
- sal_uInt16 impl_addDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<ToolBox *, void>& i_rCallback );
-
/** returns the current title.
If no title has been set via SetTitle, then the window text (Window::GetText) is returned.
diff --git a/include/svl/ilstitem.hxx b/include/svl/ilstitem.hxx
index 21156c886008..cea8abce74c0 100644
--- a/include/svl/ilstitem.hxx
+++ b/include/svl/ilstitem.hxx
@@ -37,7 +37,6 @@ public:
SfxIntegerListItem( const SfxIntegerListItem& rItem );
virtual ~SfxIntegerListItem();
- std::vector< sal_Int32 >& GetList() { return m_aList; }
const std::vector< sal_Int32 >& GetList() const { return m_aList; }
virtual bool operator==( const SfxPoolItem& ) const override;
diff --git a/include/svl/ownlist.hxx b/include/svl/ownlist.hxx
index 78d5c676fca3..171d38deab44 100644
--- a/include/svl/ownlist.hxx
+++ b/include/svl/ownlist.hxx
@@ -74,9 +74,6 @@ public:
return aCommandList[ i ];
}
- void clear() {
- aCommandList.clear();
- }
};
#endif // INCLUDED_SVL_OWNLIST_HXX
diff --git a/include/tools/appendunixshellword.hxx b/include/tools/appendunixshellword.hxx
deleted file mode 100644
index dbe66c628851..000000000000
--- a/include/tools/appendunixshellword.hxx
+++ /dev/null
@@ -1,47 +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_TOOLS_APPENDUNIXSHELLWORD_HXX
-#define INCLUDED_TOOLS_APPENDUNIXSHELLWORD_HXX
-
-#include <rtl/strbuf.hxx>
-
-#if defined UNX
-#include <tools/toolsdllapi.h>
-
-
-namespace tools {
-
-/** append arbitrary bytes as a properly quoted Unix-style shell word
-
- @param accumulator
- the string buffer to which the word is appended (without any surrounding
- whitespace); must not be null
- @param text
- the text to add
-*/
-TOOLS_DLLPUBLIC void appendUnixShellWord(
- OStringBuffer * accumulator, OString const & text);
-
-}
-#endif
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 4cd4e6daad7f..4ea4dc79acaa 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -324,7 +324,6 @@ public:
/// Move the top and left edges by a delta, preserving width and height
inline void Move( long nHorzMoveDelta, long nVertMoveDelta );
- inline void Transpose();
inline void SetPos( const Point& rPoint );
void SetSize( const Size& rSize );
inline Size GetSize() const;
@@ -497,20 +496,6 @@ inline void Rectangle::Move( long nHorzMove, long nVertMove )
nBottom += nVertMove;
}
-void Rectangle::Transpose()
-{
- if ( !IsEmpty() )
- {
- long swap( nLeft );
- nLeft = nTop;
- nTop = swap;
-
- swap = nRight;
- nRight = nBottom;
- nBottom = swap;
- }
-}
-
inline void Rectangle::SetPos( const Point& rPoint )
{
if ( nRight != RECT_EMPTY )
diff --git a/include/unotools/confignode.hxx b/include/unotools/confignode.hxx
index 9fcde9f4a602..573c89e97292 100644
--- a/include/unotools/confignode.hxx
+++ b/include/unotools/confignode.hxx
@@ -86,9 +86,6 @@ namespace utl
/// returns the local name of the node
OUString getLocalName() const;
- /// returns the fully qualified path of the node
- OUString getNodePath() const;
-
/** open a sub node
@param _rPath access path of the to-be-opened sub node. May be a hierarchical path.
*/
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index c49b4f0e0048..729dd5e58e4e 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -728,7 +728,6 @@ public:
SAL_DLLPRIVATE void ImplAdaptBitCount(Bitmap& rNew) const;
SAL_DLLPRIVATE bool ImplScaleFast( const double& rScaleX, const double& rScaleY );
SAL_DLLPRIVATE bool ImplScaleInterpolate( const double& rScaleX, const double& rScaleY );
- SAL_DLLPRIVATE bool ImplScaleConvolution( const double& rScaleX, const double& rScaleY, const vcl::Kernel& rKernel);
SAL_DLLPRIVATE bool ImplConvolutionPass(
Bitmap& aNewBitmap,
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 074200abea69..1b6cc1f34dff 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -106,19 +106,6 @@ public:
static void reorderWithinParent(std::vector< vcl::Window*>& rChilds, bool bIsButtonBox);
static void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition);
- /// Get label of the command (like of .uno:Save) from the description service
- static OUString getCommandProperty(const OUString& rProperty, const OUString& rCommand,
- const css::uno::Reference<css::uno::XComponentContext>& rContext,
- const OUString& rModuleId);
-
- /// Get image of the command (like of .uno:Save) from the description service
- static Image getCommandImage(
- const OUString& rCommand,
- bool bLarge,
- const css::uno::Reference<css::uno::XComponentContext>& rContext,
- const css::uno::Reference<css::frame::XFrame>& rFrame,
- const OUString& rModuleId );
-
css::uno::Reference<css::frame::XFrame> getFrame() { return m_xFrame; }
private:
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index 52ef5d0099e6..d744bfbe15fa 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -195,11 +195,6 @@ public:
return mbInitialized;
}
- bool requestedLegacy()
- {
- return mbRequestLegacyContext;
- }
-
/// VCL promiscuously re-uses its own contexts:
void setVCLOnly() { mbVCLOnly = true; }
bool isVCLOnly() { return mbVCLOnly; }
diff --git a/include/vcl/svpforlokit.hxx b/include/vcl/svpforlokit.hxx
deleted file mode 100644
index 0b8477afe2f2..000000000000
--- a/include/vcl/svpforlokit.hxx
+++ /dev/null
@@ -1,26 +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/.
- */
-
-#ifndef INCLUDED_VCL_SVPFORLOKIT_HXX
-#define INCLUDED_VCL_SVPFORLOKIT_HXX
-
-#include <vcl/virdev.hxx>
-#include <vcl/dllapi.h>
-
-// These functions are for use by LibreOfficeKit only, I think
-
-class SalFrame;
-
-VCL_DLLPUBLIC void InitSvpForLibreOfficeKit();
-VCL_DLLPUBLIC SalFrame* GetSvpFocusFrameForLibreOfficeKit();
-VCL_DLLPUBLIC vcl::Window* GetSalFrameWindowForLibreOfficeKit(SalFrame *pSF);
-
-#endif // INCLUDED_VCL_SVPFORLOKIT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */