summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-23 09:49:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-24 10:36:20 +0000
commit38023af6c13602ae1856bea11693c18c0c3efa36 (patch)
treec17ef3941354f732e2fdd7c3cedb7c649f99e965 /include
parent2c6ad5343de947f1646536c539b116346adb8fdc (diff)
loplugin:unusedmethods
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/basebmp/colormisc.hxx12
-rw-r--r--include/basegfx/pixel/bpixel.hxx3
-rw-r--r--include/basegfx/point/b3dpoint.hxx5
-rw-r--r--include/basegfx/range/basicbox.hxx55
-rw-r--r--include/editeng/numitem.hxx1
-rw-r--r--include/editeng/outliner.hxx12
-rw-r--r--include/editeng/unoipset.hxx6
7 files changed, 5 insertions, 89 deletions
diff --git a/include/basebmp/colormisc.hxx b/include/basebmp/colormisc.hxx
index 233c318e5079..dc269a043bc7 100644
--- a/include/basebmp/colormisc.hxx
+++ b/include/basebmp/colormisc.hxx
@@ -109,9 +109,6 @@ template< bool polarity > struct ColorBlendFunctor32
template<> struct ColorTraits< Color >
{
- /// @return number of color channels
- static int numChannels() { return 3; }
-
/// Type of a color component (i.e. the type of an individual channel)
typedef sal_uInt8 component_type;
@@ -167,15 +164,6 @@ struct NumericTraits<basebmp::Color>
typedef VigraTrueType isSigned;
typedef VigraTrueType isOrdered;
typedef VigraFalseType isComplex;
-
- static Type zero() { return Type(); }
- static Type one() { return Type(0x01010101); }
- static Type nonZero() { return Type(0x01010101); }
-
- static Promote toPromote(const Type& v) { return v; }
- static RealPromote toRealPromote(const Type& v) { return v; }
- static Type fromPromote(const Promote& v) { return v; }
- static Type fromRealPromote(const RealPromote& v) { return v; }
};
} // namespace vigra
diff --git a/include/basegfx/pixel/bpixel.hxx b/include/basegfx/pixel/bpixel.hxx
index fda6a798d71e..f42e75706202 100644
--- a/include/basegfx/pixel/bpixel.hxx
+++ b/include/basegfx/pixel/bpixel.hxx
@@ -103,9 +103,6 @@ namespace basegfx
void setOpacity(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnO = nNew; }
// comparators
- bool isInvisible() const { return (0 == maPixelUnion.maRGBO.mnO); }
- bool isVisible() const { return (0 != maPixelUnion.maRGBO.mnO); }
-
bool operator==( const BPixel& rPixel ) const
{
return (rPixel.maPixelUnion.maCombinedRGBO.mnValue == maPixelUnion.maCombinedRGBO.mnValue);
diff --git a/include/basegfx/point/b3dpoint.hxx b/include/basegfx/point/b3dpoint.hxx
index ef5c643231c8..272bff9c229c 100644
--- a/include/basegfx/point/b3dpoint.hxx
+++ b/include/basegfx/point/b3dpoint.hxx
@@ -120,11 +120,6 @@ namespace basegfx
contrast to B3DVector, applied.
*/
B3DPoint& operator*=( const ::basegfx::B3DHomMatrix& rMat );
-
- static const B3DPoint& getEmptyPoint()
- {
- return static_cast<const B3DPoint&>( ::basegfx::B3DTuple::getEmptyTuple() );
- }
};
// external operators
diff --git a/include/basegfx/range/basicbox.hxx b/include/basegfx/range/basicbox.hxx
index 28667d34b9f7..c3d87e08136b 100644
--- a/include/basegfx/range/basicbox.hxx
+++ b/include/basegfx/range/basicbox.hxx
@@ -48,18 +48,6 @@ namespace basegfx
return mnMinimum >= mnMaximum;
}
- double getCenter() const
- {
- if(isEmpty())
- {
- return 0.0;
- }
- else
- {
- return ((mnMaximum + mnMinimum - 1.0) / 2.0);
- }
- }
-
using Base::isInside;
bool isInside(sal_Int32 nValue) const
@@ -75,49 +63,6 @@ namespace basegfx
}
using Base::overlaps;
-
- bool overlaps(const BasicBox& rBox) const
- {
- if(isEmpty())
- {
- return false;
- }
- else
- {
- if(rBox.isEmpty())
- {
- return false;
- }
- else
- {
- return !((rBox.mnMaximum <= mnMinimum) || (rBox.mnMinimum >= mnMaximum));
- }
- }
- }
-
- void grow(sal_Int32 nValue)
- {
- if(!isEmpty())
- {
- bool bLessThanZero(nValue < 0);
-
- if(nValue > 0 || bLessThanZero)
- {
- mnMinimum -= nValue;
- mnMaximum += nValue;
-
- if(bLessThanZero)
- {
- // test if range did collapse
- if(mnMinimum > mnMaximum)
- {
- // if yes, collapse to center
- mnMinimum = mnMaximum = ((mnMaximum + mnMinimum - 1) / 2);
- }
- }
- }
- }
- }
};
} // end of namespace basegfx
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index bd07c4dfe765..e0fce6abd36e 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -140,7 +140,6 @@ private:
OUString sCharStyleName; // Character Style
- virtual void NotifyGraphicArrived();
public:
explicit SvxNumberFormat( sal_Int16 nNumberingType,
SvxNumPositionAndSpaceMode ePositionAndSpaceMode = LABEL_WIDTH_AND_POSITION );
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 5921122c3f5f..900df4b7e92b 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -733,8 +733,6 @@ public:
sal_Int16 GetDepth( sal_Int32 nPara ) const;
void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth );
- static bool IsVisible( Paragraph* pPara ) { return pPara->IsVisible(); }
-
void EnableUndo( bool bEnable );
bool IsUndoEnabled() const;
void UndoActionStart( sal_uInt16 nId );
@@ -894,7 +892,6 @@ public:
void RemoveFields( bool bKeepFieldText, TypeId aType = NULL );
void FieldClicked( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos );
- void FieldSelected( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos );
virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rTxtColor, Color*& rFldColor );
void SetSpeller( ::com::sun::star::uno::Reference<
@@ -927,8 +924,8 @@ public:
void SetRefDevice( OutputDevice* pRefDev );
OutputDevice* GetRefDevice() const;
- sal_uLong GetTextHeight() const;
- sal_uLong GetTextHeight( sal_Int32 nParagraph ) const;
+ sal_uLong GetTextHeight() const;
+ sal_uLong GetTextHeight( sal_Int32 nParagraph ) const;
Point GetDocPosTopLeft( sal_Int32 nParagraph );
Point GetDocPos( const Point& rPaperPos ) const;
bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
@@ -943,11 +940,10 @@ public:
const EditEngine& GetEditEngine() const;
// this is needed for StarOffice Api
- void SetLevelDependendStyleSheet( sal_Int32 nPara );
+ void SetLevelDependendStyleSheet( sal_Int32 nPara );
- sal_uInt16 GetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
+ sal_uInt16 GetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
- void StartSpelling(EditView& rEditView, bool bMultipleDoc);
// spell and return a sentence
bool SpellSentence(EditView& rEditView, svx::SpellPortions& rToFill, bool bIsGrammarChecking );
// put spell position to start of current sentence
diff --git a/include/editeng/unoipset.hxx b/include/editeng/unoipset.hxx
index 43ecb9dea6ce..3bea379195f6 100644
--- a/include/editeng/unoipset.hxx
+++ b/include/editeng/unoipset.hxx
@@ -37,13 +37,11 @@ class EDITENG_DLLPUBLIC SvxItemPropertySet
{
SfxItemPropertyMap m_aPropertyMap;
mutable com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> m_xInfo;
- const SfxItemPropertyMapEntry* _pMap;
::std::vector< SvxIDPropertyCombine* > aCombineList;
- bool mbConvertTwips;
SfxItemPool& mrItemPool;
public:
- SvxItemPropertySet( const SfxItemPropertyMapEntry *pMap, SfxItemPool& rPool, bool bConvertTwips = false );
+ SvxItemPropertySet( const SfxItemPropertyMapEntry *pMap, SfxItemPool& rPool );
~SvxItemPropertySet();
// Methods, which work directly with the ItemSet
@@ -62,8 +60,6 @@ public:
com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
const SfxItemPropertyMap& getPropertyMap() const { return m_aPropertyMap;}
const SfxItemPropertySimpleEntry* getPropertyMapEntry(const OUString &rName) const;
-
- static com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > getPropertySetInfo( const SfxItemPropertyMapEntry* pMap );
};
/** converts the given any with a metric to 100th/mm if needed */