]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Remove unused includes from virsh
authorJán Tomko <jtomko@redhat.com>
Wed, 1 Apr 2015 14:50:17 +0000 (16:50 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 2 Apr 2015 08:27:56 +0000 (10:27 +0200)
After splitting out most of virsh command, some includes
are no longer needed.

Some files have the libXML includes despite not needing them.

tools/virsh-network.c
tools/virsh-nodedev.c
tools/virsh-nwfilter.c
tools/virsh-pool.c
tools/virsh-secret.c
tools/virsh.c
tools/virsh.h

index 62323c4b78ae08051f488ce323c1df839c95eff8..39f0266588e37b27e9bb1b815926fea1c7a1a3c6 100644 (file)
 #include <config.h>
 #include "virsh-network.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 "virxml.h"
 #include "conf/network_conf.h"
 
 virNetworkPtr
index 46e0045270a443ff3286dea80d1bd8986eb07ba7..847e5b0b168562e7b8f32dcdc2babb79990b3ea4 100644 (file)
 #include <config.h>
 #include "virsh-nodedev.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 "virxml.h"
 #include "conf/node_device_conf.h"
 
 /*
index 2a75175ce0b9d995ac95db6191ffce1083b4b2f4..e6bef08edf9b663673b7f921f86952f577b1f048 100644 (file)
 #include <config.h>
 #include "virsh-nwfilter.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 "virutil.h"
-#include "virxml.h"
 
 virNWFilterPtr
 vshCommandOptNWFilterBy(vshControl *ctl, const vshCmd *cmd,
index 485d23daa60f77d199bdf82b4620dfa5a8cc81a7..4865831c9570052085144566fa39e133cba49578 100644 (file)
 #include <config.h>
 #include "virsh-pool.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 "virxml.h"
 #include "conf/storage_conf.h"
 #include "virstring.h"
 
index add2c09eb2a87d6ffdb299cf6809c1ec9cf1f3b3..5065c6ffaadc400c6aa1b442382507d84c72877e 100644 (file)
 #include <config.h>
 #include "virsh-secret.h"
 
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
-
 #include "internal.h"
 #include "base64.h"
 #include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
 #include "virutil.h"
-#include "virxml.h"
 #include "conf/secret_conf.h"
 
 static virSecretPtr
index 9ecddf3f09dae4be2a4bb260dacf3558801d511f..889a56128cb3485e1c3aad74ca2c7bc05e7bc965 100644 (file)
 #include <strings.h>
 #include <signal.h>
 
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
-
 #if WITH_READLINE
 # include <readline/readline.h>
 # include <readline/history.h>
 
 #include "internal.h"
 #include "virerror.h"
-#include "base64.h"
 #include "virbuffer.h"
 #include "viralloc.h"
-#include "virxml.h"
 #include <libvirt/libvirt-qemu.h>
 #include <libvirt/libvirt-lxc.h>
 #include "virfile.h"
 #include "configmake.h"
 #include "virthread.h"
 #include "vircommand.h"
-#include "virkeycode.h"
-#include "virnetdevbandwidth.h"
-#include "virbitmap.h"
 #include "conf/domain_conf.h"
 #include "virtypedparam.h"
 #include "virstring.h"
index df2ea7f670699b89cebfd6c69cfddbfc458624b8..3c28454cfaad1506486497e347a2e89627eade8e 100644 (file)
@@ -31,7 +31,6 @@
 # include <stdarg.h>
 # include <unistd.h>
 # include <sys/stat.h>
-# include <inttypes.h>
 # include <termios.h>
 
 # include "internal.h"