vcl/headless/CairoCommon.cxx |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

New commits:
commit da6547ff87d384d016619967359fe8bf340d1daf
Author:     Noel Grandin <[email protected]>
AuthorDate: Wed Nov 29 09:24:41 2023 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Wed Nov 29 09:31:16 2023 +0100

    remove fallback code
    
    we have had this assert for long enough now to flush out any problems.
    
    Change-Id: Ib732ca8d9156feb3c5d071cdbd44ea97875f6d9f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160060
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx
index 093e970e4dfd..5e97de6aa5d6 100644
--- a/vcl/headless/CairoCommon.cxx
+++ b/vcl/headless/CairoCommon.cxx
@@ -1893,19 +1893,8 @@ std::shared_ptr<SalBitmap> 
CairoCommon::getBitmap(tools::Long nX, tools::Long nY
 {
     std::shared_ptr<SvpSalBitmap> pBitmap = std::make_shared<SvpSalBitmap>();
     BitmapPalette aPal;
-    vcl::PixelFormat ePixelFormat = vcl::PixelFormat::INVALID;
     assert(GetBitCount() != 1 && "not supported anymore");
-    if (GetBitCount() == 1)
-    {
-        ePixelFormat = vcl::PixelFormat::N8_BPP;
-        aPal.SetEntryCount(2);
-        aPal[0] = COL_BLACK;
-        aPal[1] = COL_WHITE;
-    }
-    else
-    {
-        ePixelFormat = vcl::PixelFormat::N32_BPP;
-    }
+    vcl::PixelFormat ePixelFormat = vcl::PixelFormat::N32_BPP;
 
     if (!pBitmap->ImplCreate(Size(nWidth, nHeight), ePixelFormat, aPal, false))
     {

Reply via email to