From 465ec8b275f2685a31ee42ca1447a5d44d18a227 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 15 Jan 2023 20:37:26 +0000 Subject: getFormat() is always DeviceFormat::DEFAULT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I93139a6c2ce28f28f615b7399e37fcb06fac0997 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145543 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/generic/gdi/cairo_xlib_cairo.cxx | 15 +-------------- vcl/unx/generic/gdi/cairo_xlib_cairo.hxx | 1 - 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'vcl') diff --git a/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx b/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx index 26d8876a8906..4ec335d10324 100644 --- a/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx +++ b/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx @@ -255,7 +255,7 @@ namespace cairo return VclPtr::Create(aSystemGraphicsData, Size(width, height), - getFormat()); + DeviceFormat::DEFAULT); } /** @@ -289,19 +289,6 @@ namespace cairo return static_cast(maSysData.pRenderFormat)->depth; return -1; } - - /** - * Surface::getFormat: Get the device format of the Canvas surface. - * - * @return color format - **/ - DeviceFormat X11Surface::getFormat() const - { - if (!maSysData.pRenderFormat) - return DeviceFormat::DEFAULT; - assert (static_cast(maSysData.pRenderFormat)->depth != 1 && "unsupported"); - return DeviceFormat::DEFAULT; - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx b/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx index e8f6cd28ea18..4f0b33101d4a 100644 --- a/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx +++ b/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx @@ -88,7 +88,6 @@ namespace cairo { virtual void flush() const override; int getDepth() const; - DeviceFormat getFormat() const; const X11PixmapSharedPtr& getPixmap() const { return mpPixmap; } }; } -- cgit v1.2.3