editeng/source/editeng/editeng.cxx | 10 ---------- editeng/source/editeng/impedit.hxx | 1 - editeng/source/editeng/impedit2.cxx | 7 ------- include/editeng/editeng.hxx | 1 - 4 files changed, 19 deletions(-)
New commits: commit 90ff738d1ba1df253d66cc1137b7c0adf450d1d7 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Mon Jun 17 14:40:19 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Jun 17 20:03:38 2024 +0200 EditEngine::GetTextHeightNTP is unused ever since commit 2d8056d884ee3ab7b4454c378618dceb6f5a7ae8 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Apr 4 10:55:36 2024 +0200 loplugin:unusedmethods Change-Id: I2ccdbf45ac688e39df23fd69b8ec21efebad044c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169003 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 14d200612696..abf2ea72f4da 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -828,16 +828,6 @@ sal_uInt32 EditEngine::GetTextHeight() const return nHeight; } -sal_uInt32 EditEngine::GetTextHeightNTP() const -{ - ensureDocumentFormatted(); - - if (IsEffectivelyVertical()) - return getImpl().CalcTextWidth(true); - - return getImpl().GetTextHeightNTP(); -} - sal_uInt32 EditEngine::CalcTextWidth() { ensureDocumentFormatted(); diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 494de98136be..f493231aaaad 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -1050,7 +1050,6 @@ public: tools::Long CalcTextHeight( tools::Long* pHeightNTP ); sal_uInt32 GetTextHeight() const; - sal_uInt32 GetTextHeightNTP() const; sal_uInt32 CalcTextWidth( bool bIgnoreExtraSpace); sal_uInt32 CalcParaWidth( sal_Int32 nParagraph, bool bIgnoreExtraSpace ); sal_uInt32 CalcLineWidth(ParaPortion const& rPortion, EditLine const& rLine, bool bIgnoreExtraSpace); diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 0f253f222ed6..c77325fc87c5 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -3538,13 +3538,6 @@ sal_uInt32 ImpEditEngine::CalcLineWidth(ParaPortion const& rPortion, EditLine co return nWidth; } -sal_uInt32 ImpEditEngine::GetTextHeightNTP() const -{ - assert( IsUpdateLayout() && "Should not be used for Update=FALSE: GetTextHeight" ); - DBG_ASSERT( IsFormatted() || IsFormatting(), "GetTextHeight: Not formatted" ); - return mnCurTextHeightNTP; -} - tools::Long ImpEditEngine::Calc1ColumnTextHeight(tools::Long* pHeightNTP) { tools::Long nHeight = 0; diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 93ec14037ccd..27e5da82febc 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -282,7 +282,6 @@ public: OUString GetText( const ESelection& rSelection ) const; sal_Int32 GetTextLen() const; sal_uInt32 GetTextHeight() const; - SAL_DLLPRIVATE sal_uInt32 GetTextHeightNTP() const; sal_uInt32 CalcTextWidth(); OUString GetText( sal_Int32 nParagraph ) const;