From b7aaf1cc1728de3628aa596c98b5f59e16287c40 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Sep 2023 21:39:29 -0400 Subject: Remove unnecessary includes and forward declarations According to include-what-you-use 0.20 (7301b1f) based on clang 16.0.6. --- include/zix/allocator.h | 2 -- src/filesystem.c | 1 - src/posix/filesystem_posix.c | 2 -- 3 files changed, 5 deletions(-) diff --git a/include/zix/allocator.h b/include/zix/allocator.h index a9064bb..619697e 100644 --- a/include/zix/allocator.h +++ b/include/zix/allocator.h @@ -16,8 +16,6 @@ ZIX_BEGIN_DECLS @{ */ -struct ZixAllocatorImpl; - /** A memory allocator. diff --git a/src/filesystem.c b/src/filesystem.c index 56e1fb2..95005ae 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -3,7 +3,6 @@ #include "zix/filesystem.h" -#include "index_range.h" #include "path_iter.h" #include "system.h" diff --git a/src/posix/filesystem_posix.c b/src/posix/filesystem_posix.c index a5ac857..beaf823 100644 --- a/src/posix/filesystem_posix.c +++ b/src/posix/filesystem_posix.c @@ -40,8 +40,6 @@ # define MAX(a, b) (((a) > (b)) ? (a) : (b)) #endif -struct stat; - static inline ZixStatus zix_posix_status(const int rc) { -- cgit v1.2.1