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:
@@ -21,7 +21,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "hashmap.h"
|
||||
#include "prioq.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "hashmap.h"
|
||||
#include "in-addr-util.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "sparse-endian.h"
|
||||
|
||||
@@ -19,10 +19,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "af-list.h"
|
||||
|
||||
#include "resolved-dns-query.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
|
||||
/* How long to wait for the query in total */
|
||||
#define QUERY_TIMEOUT_USEC (30 * USEC_PER_SEC)
|
||||
|
||||
@@ -21,21 +21,15 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "sd-bus.h"
|
||||
#include "util.h"
|
||||
#include "set.h"
|
||||
|
||||
typedef struct DnsQuery DnsQuery;
|
||||
|
||||
#include "resolved-dns-scope.h"
|
||||
#include "resolved-dns-rr.h"
|
||||
#include "resolved-dns-question.h"
|
||||
#include "resolved-dns-answer.h"
|
||||
#include "resolved-dns-stream.h"
|
||||
#include "resolved-dns-transaction.h"
|
||||
#include "resolved-manager.h"
|
||||
|
||||
struct DnsQuery {
|
||||
Manager *manager;
|
||||
|
||||
@@ -21,10 +21,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "hashmap.h"
|
||||
#include "in-addr-util.h"
|
||||
#include "dns-type.h"
|
||||
|
||||
@@ -27,11 +27,8 @@ typedef struct DnsScope DnsScope;
|
||||
|
||||
#include "resolved-dns-server.h"
|
||||
#include "resolved-dns-packet.h"
|
||||
#include "resolved-dns-query.h"
|
||||
#include "resolved-dns-cache.h"
|
||||
#include "resolved-dns-zone.h"
|
||||
#include "resolved-dns-stream.h"
|
||||
#include "resolved-manager.h"
|
||||
#include "resolved-link.h"
|
||||
|
||||
typedef enum DnsScopeMatch {
|
||||
|
||||
@@ -32,7 +32,6 @@ typedef enum DnsServerType {
|
||||
DNS_SERVER_LINK,
|
||||
} DnsServerType;
|
||||
|
||||
#include "resolved-manager.h"
|
||||
#include "resolved-link.h"
|
||||
|
||||
struct DnsServer {
|
||||
|
||||
@@ -27,7 +27,6 @@ typedef struct DnsStream DnsStream;
|
||||
|
||||
#include "resolved-dns-packet.h"
|
||||
#include "resolved-dns-transaction.h"
|
||||
#include "resolved-manager.h"
|
||||
|
||||
struct DnsStream {
|
||||
Manager *manager;
|
||||
|
||||
@@ -40,11 +40,9 @@ enum DnsTransactionState {
|
||||
};
|
||||
|
||||
#include "resolved-dns-scope.h"
|
||||
#include "resolved-dns-rr.h"
|
||||
#include "resolved-dns-packet.h"
|
||||
#include "resolved-dns-question.h"
|
||||
#include "resolved-dns-answer.h"
|
||||
#include "resolved-dns-stream.h"
|
||||
|
||||
struct DnsTransaction {
|
||||
DnsScope *scope;
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
typedef struct Link Link;
|
||||
typedef struct LinkAddress LinkAddress;
|
||||
|
||||
#include "resolved-dns-server.h"
|
||||
#include "resolved-dns-scope.h"
|
||||
#include "resolved-dns-rr.h"
|
||||
#include "resolved-manager.h"
|
||||
|
||||
|
||||
@@ -19,18 +19,13 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <resolv.h>
|
||||
#include <net/if.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <poll.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "rtnl-util.h"
|
||||
#include "event-util.h"
|
||||
#include "network-util.h"
|
||||
#include "network-internal.h"
|
||||
#include "conf-parser.h"
|
||||
#include "socket-util.h"
|
||||
#include "af-list.h"
|
||||
#include "utf8.h"
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
#include "sd-event.h"
|
||||
#include "sd-network.h"
|
||||
#include "sd-rtnl.h"
|
||||
#include "util.h"
|
||||
#include "list.h"
|
||||
#include "in-addr-util.h"
|
||||
#include "hashmap.h"
|
||||
|
||||
typedef struct Manager Manager;
|
||||
@@ -41,8 +39,6 @@ enum Support {
|
||||
};
|
||||
|
||||
#include "resolved-dns-query.h"
|
||||
#include "resolved-dns-server.h"
|
||||
#include "resolved-dns-scope.h"
|
||||
#include "resolved-dns-stream.h"
|
||||
#include "resolved-link.h"
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "sd-event.h"
|
||||
#include "sd-daemon.h"
|
||||
#include "mkdir.h"
|
||||
#include "label.h"
|
||||
#include "capability.h"
|
||||
#include "selinux-util.h"
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user