[PATCH 22/29] storage_file: Remove unused includes

Peng Liang tcx4c70 at gmail.com
Wed May 11 13:55:23 UTC 2022


From: Adam Tao <tcx4c70 at gmail.com>

Signed-off-by: Peng Liang <tcx4c70 at gmail.com>
---
 src/storage_file/storage_file_backend.c         | 2 --
 src/storage_file/storage_file_backend_fs.c      | 5 -----
 src/storage_file/storage_file_backend_gluster.c | 2 --
 src/storage_file/storage_source.c               | 3 ---
 4 files changed, 12 deletions(-)

diff --git a/src/storage_file/storage_file_backend.c b/src/storage_file/storage_file_backend.c
index d63b6a7502..94944ea356 100644
--- a/src/storage_file/storage_file_backend.c
+++ b/src/storage_file/storage_file_backend.c
@@ -23,9 +23,7 @@
 
 #include <sys/stat.h>
 
-#include "datatypes.h"
 #include "virerror.h"
-#include "viralloc.h"
 #include "internal.h"
 #include "storage_file_backend.h"
 #include "virlog.h"
diff --git a/src/storage_file/storage_file_backend_fs.c b/src/storage_file/storage_file_backend_fs.c
index 581261f1cc..a67b2d1f77 100644
--- a/src/storage_file/storage_file_backend_fs.c
+++ b/src/storage_file/storage_file_backend_fs.c
@@ -27,13 +27,8 @@
 #include "virerror.h"
 #include "storage_file_backend.h"
 #include "storage_file_backend_fs.h"
-#include "storage_util.h"
-#include "vircommand.h"
-#include "viralloc.h"
 #include "virfile.h"
 #include "virlog.h"
-#include "virstring.h"
-#include "virutil.h"
 
 #define VIR_FROM_THIS VIR_FROM_STORAGE
 
diff --git a/src/storage_file/storage_file_backend_gluster.c b/src/storage_file/storage_file_backend_gluster.c
index 2aee61bf33..72341cf2c5 100644
--- a/src/storage_file/storage_file_backend_gluster.c
+++ b/src/storage_file/storage_file_backend_gluster.c
@@ -28,8 +28,6 @@
 #include "viralloc.h"
 #include "virerror.h"
 #include "virlog.h"
-#include "virstoragefile.h"
-#include "virstring.h"
 
 #define VIR_FROM_THIS VIR_FROM_STORAGE
 
diff --git a/src/storage_file/storage_source.c b/src/storage_file/storage_source.c
index 698b9eb79d..a25ce39fc9 100644
--- a/src/storage_file/storage_source.c
+++ b/src/storage_file/storage_source.c
@@ -32,12 +32,9 @@
 #include "viralloc.h"
 #include "virerror.h"
 #include "virfile.h"
-#include "virhash.h"
 #include "virlog.h"
 #include "virobject.h"
 #include "virstoragefile.h"
-#include "virstring.h"
-#include "virutil.h"
 
 #define VIR_FROM_THIS VIR_FROM_STORAGE
 
-- 
2.36.1



More information about the libvir-list mailing list