Code

treewide: remove unused includes
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:56:32 +0000 (13:56 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 13:28:58 +0000 (15:28 +0200)
21 files changed:
src/collectd-tg.c
src/daemon/collectd.c
src/daemon/common.c
src/daemon/meta_data.c
src/daemon/utils_avltree.c
src/daemon/utils_cache.c
src/daemon/utils_cache.h
src/daemon/utils_heap.c
src/grpc.cc
src/libcollectdclient/network_buffer.c
src/match_empty_counter.c
src/match_hashed.c
src/match_timediff.c
src/network.c
src/statsd.c
src/utils_fbhash.c
src/utils_parse_option.c
src/write_graphite.c
src/write_http.c
src/write_riemann_threshold.c
src/zone.c

index 23257fde9b2eaefbc52a063ad6b1cfad39843dc9..eaa99f63c783cfea0834b77cb954b73779c701de 100644 (file)
@@ -46,7 +46,6 @@
 
 #include "libcollectdclient/collectd/client.h"
 #include "libcollectdclient/collectd/network.h"
-#include "libcollectdclient/collectd/network_buffer.h"
 
 #define DEF_NUM_HOSTS    1000
 #define DEF_NUM_PLUGINS    20
index ce4922d602ec2d5aa4bbd4f81a3e9856b3e995a4..2fce643d8d83113b8090cb16aa024786f4a6829e 100644 (file)
@@ -35,8 +35,6 @@
 #include <sys/un.h>
 #include <netdb.h>
 
-#include <pthread.h>
-
 #if HAVE_LOCALE_H
 # include <locale.h>
 #endif
index 4c271d347d90e9d3bc60a50b5b528939eea2b235..f9b1433b3a5d86f6004c015f79b8206cfc854403 100644 (file)
@@ -36,8 +36,6 @@
 #include "plugin.h"
 #include "utils_cache.h"
 
-#include <pthread.h>
-
 #ifdef HAVE_MATH_H
 # include <math.h>
 #endif
index b3f892a22061804ef0cfa79de2323dca3b55c7b0..0cf8fdac198e1fcd907093a8e34b04959262fb54 100644 (file)
@@ -28,8 +28,6 @@
 #include "plugin.h"
 #include "meta_data.h"
 
-#include <pthread.h>
-
 /*
  * Data types
  */
index 1680c41fe37fd8dd1fbc51312c47a9cff2aca4b7..e1c41ecf8fb95c122c9fb2a20c6746a5271e8e5d 100644 (file)
  *   Florian octo Forster <octo at collectd.org>
  **/
 
-#include "config.h"
-
 #include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 #include <assert.h>
 
 #include "utils_avltree.h"
index bf8c901bd6683396cd3333a0d0784b08685eea66..fa592f0901a6150449877b6597403e3ac39b0165 100644 (file)
@@ -34,7 +34,6 @@
 #include "meta_data.h"
 
 #include <assert.h>
-#include <pthread.h>
 
 typedef struct cache_entry_s
 {
index 6c6a883cc903190077a6f937e167ab3552e728a6..93c2519469f6f9436468719db5da0a49fc0fbdf1 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * collectd - src/utils_cache.h
+ * collectd - utils_cache.h
  * Copyright (C) 2007       Florian octo Forster
  * Copyright (C) 2016       Sebastian tokkee Harl
  *
index 19b1d5b9db31c4b3e7ae10dbfc29daccac95cde8..8637581149c890f45577cabb1e902099f52fb82b 100644 (file)
@@ -25,7 +25,6 @@
  **/
 
 #include <stdlib.h>
-#include <string.h>
 #include <errno.h>
 #include <assert.h>
 #include <pthread.h>
index 7517bb720bd72c553c0a250801a5599f49917ba7..a1dac35bb6db0b8bb49c6ad4d78c805051a8091d 100644 (file)
@@ -36,7 +36,6 @@
 extern "C" {
 #include <fnmatch.h>
 #include <stdbool.h>
-#include <pthread.h>
 
 #include "collectd.h"
 #include "common.h"
index 130da2355a6c0c23713380101edb1fd9d35fc3e4..2b97d189aa2c8b577e74106254c671827ac0f609 100644 (file)
@@ -36,7 +36,6 @@
 #include <pthread.h>
 
 #if HAVE_LIBGCRYPT
-# include <pthread.h>
 # if defined __APPLE__
 /* default xcode compiler throws warnings even when deprecated functionality
  * is not used. -Werror breaks the build because of erroneous warnings.
index 8f99a6d163cc0c4547fa516d30816e8d50181bc7..eba6a58ea272445b98987dc3ca0c6d3cbc3beece 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "collectd.h"
 #include "common.h"
-#include "utils_cache.h"
 #include "filter_chain.h"
 
 /*
index 4178d75764e94d9dca4f2b81213dbe6c4b39d60b..79f79face14d6bc35bd856c51de8f41f92dd6ea6 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "collectd.h"
 #include "common.h"
-#include "utils_cache.h"
 #include "filter_chain.h"
 
 /*
index 77c8f51966f3e19d7f93ee25efc5a21fe0d13afa..750817be129b1db04ef64c4dd8956822c0338985 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "collectd.h"
 #include "common.h"
-#include "utils_cache.h"
 #include "filter_chain.h"
 
 #define SATISFY_ALL 0
index d3c6044231edf2df1bf16e9df8f1c7f05509323d..646f5b8f3140699dc4b6ce160cc7b6992c10e489 100644 (file)
@@ -30,7 +30,6 @@
 #include "common.h"
 #include "configfile.h"
 #include "utils_fbhash.h"
-#include "utils_avltree.h"
 #include "utils_cache.h"
 #include "utils_complain.h"
 
index 1819b3ea21437e28ee0d505b941e84243ffbdd76..57cdbc557d1e9cb3d204286fbfb53431c2269061 100644 (file)
@@ -29,7 +29,6 @@
 #include "common.h"
 #include "configfile.h"
 #include "utils_avltree.h"
-#include "utils_complain.h"
 #include "utils_latency.h"
 
 #include <sys/types.h>
index f27c08272cb5cde3734975236164943bcd2757bd..41f640af5a835652b73fb943523cb352dff726fd 100644 (file)
@@ -27,8 +27,6 @@
 #include "collectd.h"
 #include "plugin.h"
 
-#include <pthread.h>
-
 #include "utils_fbhash.h"
 #include "utils_avltree.h"
 
index 69da0403eb5ff877bd3516d0059faaf662f70ef3..f3ec71ae1c28fd23d99badabb34ef070f0bb5843 100644 (file)
@@ -25,8 +25,6 @@
  **/
 
 #include "collectd.h"
-#include "common.h"
-#include "plugin.h"
 #include "utils_parse_option.h"
 
 int parse_string (char **ret_buffer, char **ret_string)
index 0f9a8bea86edd4828b9a47f06ad1fc62f40bec09..64794bec964a7823bf5f9028516a1848573e846a 100644 (file)
@@ -47,7 +47,6 @@
 #include "plugin.h"
 #include "configfile.h"
 
-#include "utils_cache.h"
 #include "utils_complain.h"
 #include "utils_format_graphite.h"
 
index 779c94f659722811e240eccac0035e5c67e0ec51..aea7935200ce1b5af13e8243b3bb42749cf35129 100644 (file)
@@ -26,7 +26,6 @@
 #include "collectd.h"
 #include "plugin.h"
 #include "common.h"
-#include "utils_cache.h"
 #include "utils_format_json.h"
 
 #include <curl/curl.h>
index a09ae5fd2a3de04d37b85987584a864b4969a778..a4249ecf7468c451b8bcb0911b38b921c47180d4 100644 (file)
 #include "utils_threshold.h"
 #include "write_riemann_threshold.h"
 
-#include <assert.h>
-#include <ltdl.h>
-#include <pthread.h>
-
 /*
  * Threshold management
  * ====================
index ba07c9efcb84aab86dfd416ec66d8ba9249d8d02..40c4d2ee5a3dad252f5a40d59bd883f0a419f434 100644 (file)
@@ -34,8 +34,6 @@
 #include "common.h"
 #include "plugin.h"
 
-#include <sys/types.h>
-#include <sys/vm_usage.h>
 #include <procfs.h>
 #include <zone.h>