summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textdat2.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-04 16:28:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-05 09:39:22 +0000
commit403c13487c36f4200adf0986c5d11398f719cd7a (patch)
tree21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /vcl/source/edit/textdat2.hxx
parent10560949f90e08fe4a04dd91c7d388c4998100e8 (diff)
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/edit/textdat2.hxx')
-rw-r--r--vcl/source/edit/textdat2.hxx25
1 files changed, 5 insertions, 20 deletions
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx
index d18166e662bc..801d55843cfe 100644
--- a/vcl/source/edit/textdat2.hxx
+++ b/vcl/source/edit/textdat2.hxx
@@ -48,9 +48,9 @@ class TETextPortion
{
private:
sal_uInt16 nLen;
- long nWidth;
+ long nWidth;
sal_uInt8 nKind;
- sal_uInt8 nRightToLeft;
+ sal_uInt8 nRightToLeft;
TETextPortion() { nLen = 0; nKind = PORTIONKIND_TEXT; nWidth = -1; nRightToLeft = 0;}
@@ -61,21 +61,12 @@ public:
nWidth= -1;
nRightToLeft = 0;
}
-
- sal_uInt16 GetLen() const { return nLen; }
sal_uInt16& GetLen() { return nLen; }
-
- long GetWidth()const { return nWidth; }
- long& GetWidth() { return nWidth; }
-
- sal_uInt8 GetKind() const { return nKind; }
+ long& GetWidth() { return nWidth; }
sal_uInt8& GetKind() { return nKind; }
-
- sal_uInt8 GetRightToLeft() const { return nRightToLeft; }
sal_uInt8& GetRightToLeft() { return nRightToLeft; }
- bool IsRightToLeft() const { return (nRightToLeft&1); }
-
- bool HasValidSize() const { return nWidth != (-1); }
+ bool IsRightToLeft() const { return (nRightToLeft&1); }
+ bool HasValidSize() const { return nWidth != (-1); }
};
class TETextPortionList : public std::vector<TETextPortion*>
@@ -86,7 +77,6 @@ public:
void Reset();
sal_uInt16 FindPortion( sal_uInt16 nCharPos, sal_uInt16& rPortionStart, bool bPreferStartingPortion = false );
- sal_uInt16 GetPortionStartIndex( sal_uInt16 nPortion );
void DeleteFromPortion( sal_uInt16 nDelFrom );
};
@@ -123,9 +113,6 @@ public:
mbInvalid = true;
}
- bool IsIn( sal_uInt16 nIndex ) const
- { return ( (nIndex >= mnStart ) && ( nIndex < mnEnd ) ); }
-
bool IsIn( sal_uInt16 nIndex, bool bInclEnd ) const
{ return ( ( nIndex >= mnStart ) && ( bInclEnd ? ( nIndex <= mnEnd ) : ( nIndex < mnEnd ) ) ); }
@@ -152,8 +139,6 @@ public:
void SetInvalid() { mbInvalid = true; }
void SetValid() { mbInvalid = false; }
- bool IsEmpty() const { return mnEnd <= mnStart; }
-
short GetStartX() const { return mnStartX; }
void SetStartX( short n ) { mnStartX = n; }