summaryrefslogtreecommitdiff
path: root/include/editeng/borderline.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-06-30 20:11:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-01 08:56:05 +0200
commit26ae64ae9f1feafac0219de75d6c23b54ceefaae (patch)
tree663923afee1009f3738b5e0eb0617ea4323a6f5b /include/editeng/borderline.hxx
parent73a180c39f6c893c94be8a1b36b645682621adcc (diff)
remove hashCode from SvxBorderLine
because they are unused and incorrect. They are incorrect because hashCode and operator== are not mutually consistent, as I found out when I tried to use them. They were introduced in commit c39e4f6b8a942680bc7250177c34fd034a0605e0 Author: Oliver Specht <oliver.specht@cib.de> Date: Wed May 22 12:26:46 2024 +0200 Add SfxItemType to SfxPoolItem but were not used in that commit. Change-Id: I1c3c67e904823117401a0f72a49c80f4bb6398a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169773 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/borderline.hxx')
-rw-r--r--include/editeng/borderline.hxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx
index 86c6be8161be..05b76a05070d 100644
--- a/include/editeng/borderline.hxx
+++ b/include/editeng/borderline.hxx
@@ -254,21 +254,6 @@ public:
static Color threeDDarkColor( Color aMain );
static BorderWidthImpl getWidthImpl( SvxBorderLineStyle nStyle );
-
- std::size_t getHash() const
- {
- std::size_t seed = 0;
- o3tl::hash_combine(seed, m_nWidth);
- o3tl::hash_combine(seed, m_nMult);
- o3tl::hash_combine(seed, m_nDiv);
- o3tl::hash_combine(seed, m_aWidthImpl.getHash());
- o3tl::hash_combine(seed, m_aColor.operator::sal_uInt32());
- o3tl::hash_combine(seed, m_aComplexColor.getHash());
- o3tl::hash_combine(seed, m_nStyle);
- o3tl::hash_combine(seed, m_bMirrorWidths);
- o3tl::hash_combine(seed, m_bUseLeftTop);
- return seed;
- }
};
EDITENG_DLLPUBLIC bool operator!=( const SvxBorderLine& rLeft, const SvxBorderLine& rRight );