tools: remove unnecessary includes

After the split of virsh to multiple files, and the subsequent
split to vsh/virt-admin, there are quite a few leftovers.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Ján Tomko 2020-02-23 22:45:34 +01:00
parent 59ab98c112
commit 24b2f96a41
20 changed files with 7 additions and 38 deletions

View File

@ -23,9 +23,7 @@
#include "virsh-util.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "conf/virdomainobjlist.h"

View File

@ -24,12 +24,9 @@
#include <fcntl.h>
#include <signal.h>
#include <sys/time.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "virbitmap.h"
@ -50,7 +47,6 @@
#include "virtime.h"
#include "virtypedparam.h"
#include "virxml.h"
#include "virsh-nodedev.h"
#include "viruri.h"
#include "vsh-table.h"
#include "virenum.h"

View File

@ -20,18 +20,15 @@
#include <config.h>
#include "virsh-host.h"
#include "virsh.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "virbitmap.h"
#include "virbuffer.h"
#include "viralloc.h"
#include "virxml.h"
#include "virtypedparam.h"
#include "virstring.h"
#include "virfile.h"
#include "virenum.h"

View File

@ -20,6 +20,6 @@
#pragma once
#include "virsh.h"
#include "vsh.h"
extern const vshCmdDef hostAndHypervisorCmds[];

View File

@ -31,17 +31,13 @@
#include "virsh-interface.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "virbuffer.h"
#include "viralloc.h"
#include "virfile.h"
#include "virmacaddr.h"
#include "virxml.h"
#include "virstring.h"
#include "vsh-table.h"
virInterfacePtr

View File

@ -22,10 +22,8 @@
#include "virsh-network.h"
#include "internal.h"
#include "virbuffer.h"
#include "viralloc.h"
#include "virfile.h"
#include "virstring.h"
#include "virtime.h"
#include "conf/network_conf.h"
#include "vsh-table.h"

View File

@ -22,7 +22,6 @@
#include "virsh-nodedev.h"
#include "internal.h"
#include "virbuffer.h"
#include "viralloc.h"
#include "virfile.h"
#include "virstring.h"

View File

@ -22,7 +22,6 @@
#include "virsh-nwfilter.h"
#include "internal.h"
#include "virbuffer.h"
#include "viralloc.h"
#include "virfile.h"
#include "vsh-table.h"

View File

@ -28,7 +28,6 @@
#include "virfile.h"
#include "virutil.h"
#include "virsecret.h"
#include "virstring.h"
#include "virtime.h"
#include "vsh-table.h"
#include "virenum.h"

View File

@ -20,7 +20,7 @@
#pragma once
#include "virsh.h"
#include "vsh.h"
struct virshSecretEventCallback {
const char *name;

View File

@ -24,9 +24,7 @@
#include <assert.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "virbuffer.h"

View File

@ -20,6 +20,6 @@
#pragma once
#include "virsh.h"
#include "vsh.h"
extern const vshCmdDef snapshotCmds[];

View File

@ -25,9 +25,7 @@
#include <fcntl.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xmlsave.h>
#include "internal.h"
#include "virbuffer.h"

View File

@ -20,9 +20,7 @@
#pragma once
#include <stdarg.h>
#include <unistd.h>
#include <sys/stat.h>
#include "internal.h"
#include "virerror.h"

View File

@ -24,7 +24,6 @@
#include "internal.h"
#include "virt-admin.h"
#include "viralloc.h"
#include "virstring.h"
char **

View File

@ -19,8 +19,9 @@
*/
#include <config.h>
#include "virt-admin.h"
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#if WITH_READLINE
@ -29,6 +30,7 @@
#endif
#include "internal.h"
#include "virt-admin.h"
#include "viralloc.h"
#include "virerror.h"
#include "virfile.h"

View File

@ -20,7 +20,6 @@
*/
#include <config.h>
#include <unistd.h>
#include "virt-host-validate-qemu.h"
#include "virt-host-validate-common.h"

View File

@ -28,8 +28,6 @@
#include "viralloc.h"
#include "virbuffer.h"
#include "virstring.h"
#include "virsh-util.h"
#define HEX_ENCODE_LENGTH 4 /* represents length of '\xNN' */

View File

@ -24,9 +24,7 @@
#include <assert.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/time.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
#include <inttypes.h>
#include <signal.h>
@ -42,7 +40,6 @@
#include "virfile.h"
#include "virthread.h"
#include "vircommand.h"
#include "virtypedparam.h"
#include "virstring.h"
#include "virutil.h"

View File

@ -21,8 +21,6 @@
#pragma once
#include <stdarg.h>
#include <unistd.h>
#include <sys/stat.h>
#ifndef WIN32
# include <termios.h>
#endif