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:
@@ -20,7 +20,6 @@
|
||||
***/
|
||||
|
||||
#include "bus-label.h"
|
||||
#include "bus-common-errors.h"
|
||||
#include "strv.h"
|
||||
#include "bus-util.h"
|
||||
#include "machine-image.h"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
***/
|
||||
|
||||
#include "sd-bus.h"
|
||||
#include "machine.h"
|
||||
|
||||
extern const sd_bus_vtable machine_vtable[];
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -26,7 +26,6 @@ typedef struct MachineOperation MachineOperation;
|
||||
typedef enum KillWho KillWho;
|
||||
|
||||
#include "list.h"
|
||||
#include "util.h"
|
||||
#include "machined.h"
|
||||
|
||||
typedef enum MachineState {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
***/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "list.h"
|
||||
#include "hashmap.h"
|
||||
#include "sd-event.h"
|
||||
|
||||
Reference in New Issue
Block a user