From 5a94aaaf5d383caea42aa846a683a2599ef5b216 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 14 May 2025 17:10:53 +0200 Subject: [PATCH] xdg-autostart-generator: Clean up includes Split out of #37344 --- src/xdg-autostart-generator/fuzz-xdg-desktop.c | 7 ++----- src/xdg-autostart-generator/test-xdg-autostart.c | 1 - src/xdg-autostart-generator/xdg-autostart-condition.c | 3 ++- src/xdg-autostart-generator/xdg-autostart-generator.c | 8 ++------ src/xdg-autostart-generator/xdg-autostart-service.c | 3 +-- src/xdg-autostart-generator/xdg-autostart-service.h | 3 +-- 6 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/xdg-autostart-generator/fuzz-xdg-desktop.c b/src/xdg-autostart-generator/fuzz-xdg-desktop.c index 9aca797e1ba..8c01feb8272 100644 --- a/src/xdg-autostart-generator/fuzz-xdg-desktop.c +++ b/src/xdg-autostart-generator/fuzz-xdg-desktop.c @@ -1,13 +1,10 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ -#include "alloc-util.h" +#include + #include "fd-util.h" -#include "fs-util.h" #include "fuzz.h" #include "rm-rf.h" -#include "string-util.h" -#include "strv.h" -#include "tests.h" #include "tmpfile-util.h" #include "xdg-autostart-service.h" diff --git a/src/xdg-autostart-generator/test-xdg-autostart.c b/src/xdg-autostart-generator/test-xdg-autostart.c index edad2452bec..4caf6087fcf 100644 --- a/src/xdg-autostart-generator/test-xdg-autostart.c +++ b/src/xdg-autostart-generator/test-xdg-autostart.c @@ -2,7 +2,6 @@ #include "alloc-util.h" #include "fd-util.h" -#include "fs-util.h" #include "string-util.h" #include "strv.h" #include "tests.h" diff --git a/src/xdg-autostart-generator/xdg-autostart-condition.c b/src/xdg-autostart-generator/xdg-autostart-condition.c index b822ab5aab1..a59604082ef 100644 --- a/src/xdg-autostart-generator/xdg-autostart-condition.c +++ b/src/xdg-autostart-generator/xdg-autostart-condition.c @@ -1,8 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include + #include "log.h" #include "main-func.h" -#include "string-util.h" #include "strv.h" /* diff --git a/src/xdg-autostart-generator/xdg-autostart-generator.c b/src/xdg-autostart-generator/xdg-autostart-generator.c index 37e59991e96..c7b9a1c70af 100644 --- a/src/xdg-autostart-generator/xdg-autostart-generator.c +++ b/src/xdg-autostart-generator/xdg-autostart-generator.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ -#include -#include +#include +#include #include #include "alloc-util.h" @@ -11,11 +11,7 @@ #include "glyph-util.h" #include "hashmap.h" #include "log.h" -#include "main-func.h" -#include "nulstr-util.h" #include "path-lookup.h" -#include "stat-util.h" -#include "string-util.h" #include "strv.h" #include "xdg-autostart-service.h" diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index e4081c9e635..dbf9087304c 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -1,6 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ -#include #include #include #include @@ -12,8 +11,8 @@ #include "fd-util.h" #include "fileio.h" #include "generator.h" +#include "glyph-util.h" #include "log.h" -#include "nulstr-util.h" #include "parse-util.h" #include "path-util.h" #include "specifier.h" diff --git a/src/xdg-autostart-generator/xdg-autostart-service.h b/src/xdg-autostart-generator/xdg-autostart-service.h index d540a7396cf..83a692f708b 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.h +++ b/src/xdg-autostart-generator/xdg-autostart-service.h @@ -1,8 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once -#include "macro.h" -#include "memory-util.h" +#include "forward.h" typedef struct XdgAutostartService { char *name; -- 2.47.3