]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Remove headers not being used directly
authorkyak <peselnik@gmail.com>
Mon, 11 Dec 2023 10:13:00 +0000 (13:13 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 22 Dec 2023 20:19:39 +0000 (20:19 +0000)
Fix clangd warnings regarding headers not being used directly.

17 files changed:
src/button/button-png.c
src/button/button-svg.c
src/button/button-xbm.c
src/common/font.c
src/common/parse-bool.c
src/common/spawn.c
src/config/rcxml.c
src/config/session.c
src/desktop.c
src/dnd.c
src/layers.c
src/menu/menu.c
src/output.c
src/snap.c
src/theme.c
src/view-impl-common.c
src/window-rules.c

index 61c8e4cffcb9903b8772cd8f3e98d10f5ed689bd..f094f1a931d7f6bf5f899b57ffbcd4b169bef902 100644 (file)
@@ -12,9 +12,7 @@
 #include "buffer.h"
 #include "button/button-png.h"
 #include "button/common.h"
-#include "common/file-helpers.h"
 #include "labwc.h"
-#include "theme.h"
 
 /*
  * cairo_image_surface_create_from_png() does not gracefully handle non-png
index 3dab05d1e0a8731d143c1be168c6c6efcbb2daa6..17882c0d3e20cceedc4e974e120f83c56356b651 100644 (file)
@@ -12,9 +12,7 @@
 #include "buffer.h"
 #include "button/button-svg.h"
 #include "button/common.h"
-#include "common/file-helpers.h"
 #include "labwc.h"
-#include "theme.h"
 
 void
 button_svg_load(const char *button_name, struct lab_data_buffer **buffer,
index 4222067c13cf34b185e3562e577a86869fbee0ca..fd1dc8193992736ac3fabb85a234d99e9d2de61e 100644 (file)
 #include <drm_fourcc.h>
 #include "button/button-xbm.h"
 #include "button/common.h"
-#include "common/dir.h"
 #include "common/grab-file.h"
 #include "common/mem.h"
-#include "config/rcxml.h"
-#include "theme.h"
 #include "buffer.h"
 
 enum token_type {
index e173db7a0c307d60eec11d4a86c4e7aa3e8203b9..b27b7dde2189ebc00ace833e9087d4fbfb55f457 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-only
-#include <assert.h>
 #include <cairo.h>
 #include <drm_fourcc.h>
 #include <pango/pangocairo.h>
index fe5f4f84598e06d11bee2bf2a7a7955701fa8158..289ac0afb30be515639ad94c7eea77975503ddb8 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-only
-#include <string.h>
 #include <strings.h>
 #include <wlr/util/log.h>
 #include "common/parse-bool.h"
index 66e7ad1d8860be85acb956868dc8b86fa4645e5c..11b57e7dde561ec9af7439146d4aedb314f33bb5 100644 (file)
@@ -3,7 +3,6 @@
 #include <assert.h>
 #include <glib.h>
 #include <signal.h>
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/wait.h>
index 45bb898bea9530bcee7e3896837a6afcd9583ec7..efd6122f04af835863dbd214b83ec819cfa3270e 100644 (file)
@@ -1,8 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #define _POSIX_C_SOURCE 200809L
 #include <assert.h>
-#include <ctype.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <libxml/parser.h>
 #include <libxml/tree.h>
index efe4455a622a878f18032d1267935c5f83d33d3a..b4014dc1f59c6ec4e9b86c9deb066c6724f096d1 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #define _POSIX_C_SOURCE 200809L
-#include <ctype.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -9,7 +8,6 @@
 #include <wlr/util/log.h>
 #include "common/buf.h"
 #include "common/file-helpers.h"
-#include "common/mem.h"
 #include "common/spawn.h"
 #include "common/string-helpers.h"
 #include "config/session.h"
index 08f8ff59b1fe1f93ea728eb7b7948a6cffe30f33..f7c61ac9afa601d7b98cba5d0d8b80716a2ee810 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "config.h"
 #include <assert.h>
-#include "common/list.h"
 #include "common/scene-helpers.h"
 #include "dnd.h"
 #include "labwc.h"
index 71685675be1243d62b2f099e75b3e6b897f47258..04c016df59489b24b6bdc66d51003ad028ce95d9 100644 (file)
--- a/src/dnd.c
+++ b/src/dnd.c
@@ -3,7 +3,6 @@
 #include <wlr/types/wlr_data_device.h>
 #include <wlr/types/wlr_scene.h>
 #include <wlr/util/log.h>
-#include "common/mem.h"
 #include "dnd.h"
 #include "input/cursor.h"
 #include "labwc.h"  /* for struct seat */
index abf9c711f423ffdb14faaa4a4aa1a3e4f82d9e41..79cffe94356b875bef4ef0b6d9378df9cfc72383 100644 (file)
@@ -15,7 +15,6 @@
 #include <wlr/types/wlr_layer_shell_v1.h>
 #include <wlr/util/log.h>
 #include "common/macros.h"
-#include "common/list.h"
 #include "common/mem.h"
 #include "config/rcxml.h"
 #include "layers.h"
index b2ee08573b81a92819077db9c160d3b9166d23f4..7fc1cecfdae0edf62d678e52637cbc5008cbf0c6 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #define _POSIX_C_SOURCE 200809L
 #include <assert.h>
-#include <ctype.h>
 #include <libxml/parser.h>
 #include <libxml/tree.h>
 #include <stdio.h>
index eaec44bb537533de8fa3865f65d4b96a2dd4475e..36d23128a7e4efbb4d5c9c1ad17e3d32e6f53ec8 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #define _POSIX_C_SOURCE 200809L
-#include <assert.h>
 #include <strings.h>
 #include <wlr/backend/drm.h>
 #include <wlr/backend/headless.h>
index 698cbf3b57dcc37310cc23920bbaab8976662e38..7128f16788bcea94c79a5aa23467cbee82607207 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-only
-#include <assert.h>
 #include <strings.h>
 #include <wlr/util/box.h>
 #include "labwc.h"
index f58b92d5c4c4d51aa721b75462eb816def2c7ffb..ec921e37a6bd7f533ccdc4b367dad397ee875b74 100644 (file)
@@ -9,10 +9,8 @@
 #include "config.h"
 #include <assert.h>
 #include <cairo.h>
-#include <ctype.h>
 #include <drm_fourcc.h>
 #include <glib.h>
-#include <math.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
index 6e6ae5c9d0cf61976b747e101384abf64da69fac..0b7bc9a10810fa377c22bb4a5ddbbee0b69bba15 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /* view-impl-common.c: common code for shell view->impl functions */
-#include <assert.h>
 #include <stdio.h>
 #include <strings.h>
 #include "common/list.h"
index d3ed888ec67c26317ec8e886168469d15d5c78c4..3ee83a5b733276e7c6b857fc912c01adb55a3356 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #define _POSIX_C_SOURCE 200809L
-#include "config.h"
 #include <assert.h>
 #include <stdbool.h>
 #include <cairo.h>