]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: Remove unused includes
authorPeng Liang <tcx4c70@gmail.com>
Wed, 8 Jun 2022 12:13:12 +0000 (20:13 +0800)
committerJán Tomko <jtomko@redhat.com>
Thu, 16 Jun 2022 04:43:58 +0000 (06:43 +0200)
Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
27 files changed:
tools/virsh-checkpoint.c
tools/virsh-completer-checkpoint.c
tools/virsh-completer-domain.c
tools/virsh-completer-host.c
tools/virsh-completer-interface.c
tools/virsh-completer-network.c
tools/virsh-completer-nodedev.c
tools/virsh-completer-nwfilter.c
tools/virsh-completer-pool.c
tools/virsh-completer-secret.c
tools/virsh-completer-snapshot.c
tools/virsh-completer-volume.c
tools/virsh-completer.c
tools/virsh-console.c
tools/virsh-domain-event.c
tools/virsh-domain.c
tools/virsh-nodedev.c
tools/virsh-pool.c
tools/virsh-snapshot.c
tools/virsh-util.c
tools/virsh.c
tools/virsh.h
tools/virt-admin.c
tools/virt-login-shell-helper.c
tools/vsh-table.c
tools/vsh.c
tools/vsh.h

index 8ad37ece69c3aa06002b9ffc8a807a9b674ef361..ee04418bc0e3a0d04c6a6fea0856dd66d43d3ec3 100644 (file)
@@ -33,9 +33,7 @@
 #include "viralloc.h"
 #include "virfile.h"
 #include "virsh-util.h"
-#include "virstring.h"
 #include "virxml.h"
-#include "conf/checkpoint_conf.h"
 #include "vsh-table.h"
 
 /* Helper for checkpoint-create and checkpoint-create-as */
index b6d6c93e85f16671a661ebe0c8d954b31fe29605..bdd3a4d8507303175cf0cfcedd32b09a8aa5011e 100644 (file)
 #include <config.h>
 
 #include "virsh-completer-checkpoint.h"
-#include "viralloc.h"
 #include "virsh-util.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshCheckpointNameCompleter(vshControl *ctl,
index d4c877cd043457fc7fee7a359ea93a97300c35dc..b54baf3577e79110c2336ee5b73edccb720d0cfd 100644 (file)
@@ -27,7 +27,6 @@
 #include "virsh-domain-monitor.h"
 #include "virsh-util.h"
 #include "virsh.h"
-#include "virstring.h"
 #include "virxml.h"
 #include "virperf.h"
 #include "virbitmap.h"
index 68bc6cfe251b4e5396ef019eb9e5284f45f85809..05a84a43bb43deea0bd3b7a9aa3d0370a890866a 100644 (file)
@@ -21,7 +21,6 @@
 #include <config.h>
 
 #include "virsh-completer-host.h"
-#include "viralloc.h"
 #include "virsh.h"
 #include "virstring.h"
 #include "virxml.h"
index 44ba35550ab917b504d57a677ff2327672c71459..72a32dcfe3b79d0957cc5324169cd04978834dbc 100644 (file)
@@ -22,9 +22,7 @@
 
 #include "virsh-completer-interface.h"
 #include "virsh-util.h"
-#include "viralloc.h"
 #include "virsh.h"
-#include "virstring.h"
 
 typedef const char *
 (*virInterfaceStringCallback)(virInterfacePtr iface);
index 839d71e9616b4924dc51bbff4b71aafd2452fe35..f28d724ca8d6aed41e8fecde859da6216d2df993 100644 (file)
@@ -25,7 +25,6 @@
 #include "viralloc.h"
 #include "virsh-network.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshNetworkNameCompleter(vshControl *ctl,
index 57544da15d42a8b0c63c180f1eb76d850060d6b7..d743df460e6bd4946e194a2cb7b690bf728f02be 100644 (file)
 #include "virsh-util.h"
 #include "conf/node_device_conf.h"
 #include "conf/domain_conf.h"
-#include "viralloc.h"
 #include "virsh-nodedev.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshNodeDeviceNameCompleter(vshControl *ctl,
index 9850dbba5d9eedc06672c16e561fcc0422fd4bd0..3a0ddeceadcc77ba4701850acb1ec61b627476e1 100644 (file)
@@ -22,9 +22,7 @@
 
 #include "virsh-completer-nwfilter.h"
 #include "virsh-util.h"
-#include "viralloc.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshNWFilterNameCompleter(vshControl *ctl,
index 1a966d95b9e3f30a94336cb99b82032576bfd1ac..0600394411d906e3fa43cad0fe3f00e333fa712e 100644 (file)
 #include "virsh-completer-pool.h"
 #include "virsh-util.h"
 #include "conf/storage_conf.h"
-#include "viralloc.h"
 #include "virsh-pool.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshStoragePoolNameCompleter(vshControl *ctl,
index 396997244dd942af49f28c00b7cd5ab983f70fd6..f31127d0ce15b173abe3d2907ab6dd3b0eec0992 100644 (file)
 #include <config.h>
 
 #include "virsh-completer-secret.h"
-#include "viralloc.h"
 #include "virsh-secret.h"
 #include "virsh-util.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshSecretUUIDCompleter(vshControl *ctl,
index 535841cf2e16929dc4c944ac0168090446bb5152..c7974d715cac0be7bcd23107d80f920d1b66dcfc 100644 (file)
 #include <config.h>
 
 #include "virsh-completer-snapshot.h"
-#include "viralloc.h"
 #include "virsh-util.h"
 #include "virsh.h"
-#include "virstring.h"
 
 char **
 virshSnapshotNameCompleter(vshControl *ctl,
index a1ebadccacc3da3e562cb7799aee6d3c1cfb5648..9a80112e594cc81a5173de410affdbadbb0d66a9 100644 (file)
 
 #include "virsh-completer-volume.h"
 #include "virsh-util.h"
-#include "viralloc.h"
 #include "virsh-pool.h"
 #include "virsh.h"
-#include "virstring.h"
 #include "virsh-volume.h"
 
 char **
index e5610d0fe8e4e9ff3904b90152b5b64933ba5801..d4defba86e38d2b90aa6860b857a94a904372b91 100644 (file)
@@ -21,8 +21,6 @@
 #include <config.h>
 
 #include "virsh-completer.h"
-#include "viralloc.h"
-#include "virstring.h"
 
 /**
  * A completer callback is a function that accepts three arguments:
index b8780c714d9ae804a51ce16addf117b453e4b02a..13ee811a92d65278f3b12d578e0b46e2ae8c4342 100644 (file)
@@ -35,7 +35,6 @@
 # include "virsh-console.h"
 # include "virsh-util.h"
 # include "virlog.h"
-# include "virfile.h"
 # include "viralloc.h"
 # include "virthread.h"
 # include "virerror.h"
index 2d6db5f881198716803e22d758adabb2766c46fb..9531a5435c8564c9789abfd7ae52334f160a56af 100644 (file)
  */
 
 #include <config.h>
-#include "virsh-domain-event.h"
 #include "virsh-util.h"
 
 #include "internal.h"
 #include "viralloc.h"
 #include "virenum.h"
-#include "virutil.h"
 #include "virtime.h"
 #include "virtypedparam.h"
 
index 06ed6ba9cf08dd838dae1b19502def8886365f68..d7fe037eb77cc8acb545eee8701249903c0cd25e 100644 (file)
@@ -44,7 +44,6 @@
 #include "virsh-console.h"
 #include "virsh-domain-monitor.h"
 #include "virsh-host.h"
-#include "virerror.h"
 #include "virtime.h"
 #include "virtypedparam.h"
 #include "virxml.h"
index 90066249afd5057292750ba60fc46895571674ee..1be912dd54e7e6aeae4d3cbe72cce4973f1c1b28 100644 (file)
@@ -26,7 +26,6 @@
 #include "internal.h"
 #include "viralloc.h"
 #include "virfile.h"
-#include "virstring.h"
 #include "virtime.h"
 #include "conf/node_device_conf.h"
 #include "virenum.h"
index 7e7a8d511f47e43452fc9d317f69f7e5ed093c70..5fdc78470b2d675902e2922fb81f70ad05232608 100644 (file)
@@ -27,7 +27,6 @@
 #include "viralloc.h"
 #include "virfile.h"
 #include "conf/storage_conf.h"
-#include "virstring.h"
 #include "virtime.h"
 #include "vsh-table.h"
 #include "virenum.h"
index 7cd76f39e2eb9a6d1dc38a2f608ad1bf0f2652f2..47a96e082bb5256514d3a1450332ff161c28ab56 100644 (file)
@@ -31,7 +31,6 @@
 #include "viralloc.h"
 #include "virfile.h"
 #include "virsh-util.h"
-#include "virstring.h"
 #include "virxml.h"
 #include "conf/virdomainsnapshotobjlist.h"
 #include "vsh-table.h"
index dc6ed7a86d2b7df27113dc3b2a3324616a0be787..ef275a43694c1f8e7baa4d9b639566826ccfab20 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "virfile.h"
 #include "virstring.h"
-#include "viralloc.h"
 #include "virxml.h"
 
 static virDomainPtr
index f7adb90be83abba6adb5ef68dcd3497f6cd5e651..4a4ceef4ec3bace1d963ba1ae1f8f71feaee307d 100644 (file)
 #include <config.h>
 #include "virsh.h"
 
-#include <stdarg.h>
 #include <unistd.h>
 #include <getopt.h>
 #include <sys/time.h>
 #include <fcntl.h>
-#include <time.h>
 #include <sys/stat.h>
-#include <inttypes.h>
 
 #include "internal.h"
 #include "virerror.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
 #include "virthread.h"
-#include "vircommand.h"
-#include "virtypedparam.h"
 #include "virstring.h"
 #include "virgettext.h"
 
 #include "virsh-backup.h"
 #include "virsh-checkpoint.h"
-#include "virsh-console.h"
 #include "virsh-domain.h"
 #include "virsh-domain-event.h"
 #include "virsh-domain-monitor.h"
index d7a60b135d04cbf773bfb4a4b907b9ada05004f3..f9841c8da26b6f45e2c4fd2f2649891964b7a2f7 100644 (file)
@@ -23,8 +23,6 @@
 #include <unistd.h>
 
 #include "internal.h"
-#include "virerror.h"
-#include "virthread.h"
 #include "virpolkit.h"
 #include "vsh.h"
 #include "virsh-completer.h"
index e010763e211c4c945c9a00db04d36f049ca8b7ef..952999ca3caea9b4f13ea71175ebab32e63a2ed5 100644 (file)
@@ -32,7 +32,6 @@
 #include "virstring.h"
 #include "virthread.h"
 #include "virgettext.h"
-#include "virtime.h"
 #include "virt-admin-completer.h"
 #include "vsh-table.h"
 #include "virenum.h"
index 0fb03da697caa06803fefd7a36a9fb687d65cf6f..3f8757e49647474ed8424a10dfccffb947f480e7 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <getopt.h>
 #include <signal.h>
-#include <stdarg.h>
 #include <unistd.h>
 
 #include "internal.h"
index aa2deb8c72072370054f0284ae35257b7ad1367a..005cc564dd5e28dc0b3f49a916e6f53b953df464 100644 (file)
@@ -22,7 +22,6 @@
 #include "vsh-table.h"
 
 #include <stdarg.h>
-#include <stddef.h>
 #include <wchar.h>
 #include <wctype.h>
 
index 499794c8fcea9b93f377ea51ae48dc5af4f83317..0066504ebe2f5914385c7eb725228d6464c1628a 100644 (file)
@@ -26,7 +26,6 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
-#include <inttypes.h>
 #include <signal.h>
 
 #if WITH_READLINE
index 663dc1ffce8e27b570ff24dc9bbe285c23c0fe50..a43660b63d1fe1b777c6797fdf2e3e75e7a78279 100644 (file)
@@ -26,7 +26,6 @@
 #endif
 
 #include "internal.h"
-#include "virerror.h"
 #include "virthread.h"
 
 #define VIR_FROM_THIS VIR_FROM_NONE