vcl/source/window/status.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 9c1c80bc9f679130939fccd251559c27abf675c8
Author:     Luboš Luňák <[email protected]>
AuthorDate: Wed May 4 08:56:06 2022 +0200
Commit:     Luboš Luňák <[email protected]>
CommitDate: Wed May 4 15:16:47 2022 +0200

    remove unused layout call
    
    I should have removed this in bfb6a42e26de28d88ced43eb3a2c63ce323.
    
    Change-Id: Ieb4b5fabcc1eecf82dbacef66bef8288b6c51761
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133815
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <[email protected]>

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index d6803cc5b4c8..8c701b496b14 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1143,8 +1143,6 @@ void StatusBar::SetItemText( sal_uInt16 nItemId, const 
OUString& rText, int nCha
     tools::Long nWidth;
     if (nCharsWidth != -1)
     {
-        std::unique_ptr<SalLayout> pSalLayout = 
GetOutDev()->ImplLayout("0",0,-1,
-            Point(0, 0), 0, {}, SalLayoutFlags::GlyphItemsOnly);
         nWidth = GetTextWidth("0",0,-1,nullptr,
                     
SalLayoutGlyphsCache::self()->GetLayoutGlyphs(GetOutDev(),"0"));
         nWidth = nWidth * nCharsWidth + nFudge;

Reply via email to