remove unused includes

This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-02-23 23:53:42 +01:00
parent 4aab5d0cbd
commit 2eec67acbb
479 changed files with 11 additions and 1286 deletions
-1
View File
@@ -20,7 +20,6 @@
***/
#include "bus-label.h"
#include "bus-common-errors.h"
#include "strv.h"
#include "bus-util.h"
#include "machine-image.h"
-1
View File
@@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/mount.h>
/* When we include libgen.h because we need dirname() we immediately
-1
View File
@@ -22,7 +22,6 @@
***/
#include "sd-bus.h"
#include "machine.h"
extern const sd_bus_vtable machine_vtable[];
-1
View File
@@ -28,7 +28,6 @@
#include "util.h"
#include "mkdir.h"
#include "hashmap.h"
#include "strv.h"
#include "fileio.h"
#include "special.h"
#include "unit-name.h"
-1
View File
@@ -26,7 +26,6 @@ typedef struct MachineOperation MachineOperation;
typedef enum KillWho KillWho;
#include "list.h"
#include "util.h"
#include "machined.h"
typedef enum MachineState {
-1
View File
@@ -24,7 +24,6 @@
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <pwd.h>
#include <locale.h>
#include <fcntl.h>
#include <netinet/in.h>
-9
View File
@@ -22,21 +22,12 @@
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <pwd.h>
#include "sd-id128.h"
#include "sd-messages.h"
#include "strv.h"
#include "mkdir.h"
#include "path-util.h"
#include "special.h"
#include "fileio-label.h"
#include "label.h"
#include "utf8.h"
#include "unit-name.h"
#include "bus-util.h"
#include "bus-common-errors.h"
#include "time-util.h"
#include "cgroup-util.h"
#include "machine-image.h"
#include "image-dbus.h"
-6
View File
@@ -20,17 +20,11 @@
***/
#include <errno.h>
#include <pwd.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/epoll.h>
#include "sd-daemon.h"
#include "strv.h"
#include "conf-parser.h"
#include "cgroup-util.h"
#include "mkdir.h"
#include "bus-util.h"
#include "bus-error.h"
#include "label.h"
-2
View File
@@ -22,9 +22,7 @@
***/
#include <stdbool.h>
#include <inttypes.h>
#include "util.h"
#include "list.h"
#include "hashmap.h"
#include "sd-event.h"