From 7bdbb50a507df4c419f68d2ae453dd482267f168 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 31 Oct 2020 14:32:20 +0100 Subject: tdf#42949 Fix new IWYU warnings in directories c* Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Iac1e7802dbe1efa01c2befdd10406231788d4fc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105315 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- canvas/inc/base/canvasbase.hxx | 1 - canvas/inc/base/integerbitmapbase.hxx | 1 - canvas/inc/vclwrapper.hxx | 1 + canvas/source/cairo/cairo_canvashelper_text.cxx | 1 - canvas/source/cairo/cairo_textlayout.cxx | 9 --------- canvas/source/cairo/cairo_textlayout.hxx | 1 - canvas/source/opengl/ogl_spritedevicehelper.cxx | 2 -- canvas/source/vcl/canvashelper.cxx | 1 - canvas/workben/canvasdemo.cxx | 5 +---- 9 files changed, 2 insertions(+), 20 deletions(-) (limited to 'canvas') diff --git a/canvas/inc/base/canvasbase.hxx b/canvas/inc/base/canvasbase.hxx index b0f244e5951c..24737f784d59 100644 --- a/canvas/inc/base/canvasbase.hxx +++ b/canvas/inc/base/canvasbase.hxx @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/canvas/inc/base/integerbitmapbase.hxx b/canvas/inc/base/integerbitmapbase.hxx index d485233d45c7..43c4401c5ac5 100644 --- a/canvas/inc/base/integerbitmapbase.hxx +++ b/canvas/inc/base/integerbitmapbase.hxx @@ -21,7 +21,6 @@ #include #include -#include namespace canvas diff --git a/canvas/inc/vclwrapper.hxx b/canvas/inc/vclwrapper.hxx index a77b2757f8bf..3c1dfbf2d686 100644 --- a/canvas/inc/vclwrapper.hxx +++ b/canvas/inc/vclwrapper.hxx @@ -20,6 +20,7 @@ #pragma once #include +#include namespace canvas { diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx index 912e3b678ca8..4ee68f94de46 100644 --- a/canvas/source/cairo/cairo_canvashelper_text.cxx +++ b/canvas/source/cairo/cairo_canvashelper_text.cxx @@ -30,7 +30,6 @@ #include #include -#include #include "cairo_canvasfont.hxx" #include "cairo_canvashelper.hxx" diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index b7235b30d3c1..6f5d114aa99c 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -30,20 +30,11 @@ #include #include #include -#include #include #include "cairo_textlayout.hxx" -#include - -#if defined CAIRO_HAS_FT_FONT -# include -#else -# error Native API needed. -#endif - using namespace ::cairo; using namespace ::com::sun::star; diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx index b2e5c72d0b53..b4159e737e48 100644 --- a/canvas/source/cairo/cairo_textlayout.hxx +++ b/canvas/source/cairo/cairo_textlayout.hxx @@ -29,7 +29,6 @@ #include -#include #include "cairo_canvasfont.hxx" diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx index bc4651f54157..bcca03d0bd45 100644 --- a/canvas/source/opengl/ogl_spritedevicehelper.cxx +++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx @@ -28,8 +28,6 @@ #include "ogl_canvascustomsprite.hxx" #include "ogl_texturecache.hxx" -#include - using namespace ::com::sun::star; static void initContext() diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index e56a273a1fe1..8930f8fccb80 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx index 4854a07d1ace..e19e1f45f2af 100644 --- a/canvas/workben/canvasdemo.cxx +++ b/canvas/workben/canvasdemo.cxx @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -35,15 +34,13 @@ #include #include #include -#include +#include #include #include #include #include #include #include -#include -#include #include using namespace ::com::sun::star; -- cgit