Remove unused headers

With help from
https://github.com/include-what-you-use/include-what-you-use/
This commit is contained in:
Orestis Floros
2020-04-19 11:12:39 +02:00
parent 3c522d9f2f
commit 0b62129224
39 changed files with 3 additions and 137 deletions

View File

@ -9,12 +9,8 @@
*/
#include "all.h"
#include <math.h>
#include <time.h>
#include <X11/XKBlib.h>
#include <xcb/xcb_icccm.h>
typedef enum { CLICK_BORDER = 0,
CLICK_DECORATION = 1,
CLICK_INSIDE = 2 } click_destination_t;

View File

@ -11,8 +11,6 @@
#include "shmlog.h"
#include <fcntl.h>
#include <float.h>
#include <stdarg.h>
#include <stdint.h>
#include <unistd.h>

View File

@ -25,13 +25,6 @@
*/
#include "all.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
// Macros to make the YAJL API a bit easier to use.
#define y(x, ...) (command_output.json_gen != NULL ? yajl_gen_##x(command_output.json_gen, ##__VA_ARGS__) : 0)
#define ystr(str) (command_output.json_gen != NULL ? yajl_gen_string(command_output.json_gen, (unsigned char *)str, strlen(str)) : 0)

View File

@ -9,9 +9,6 @@
*/
#include "all.h"
#include <float.h>
#include <stdarg.h>
/*******************************************************************************
* Criteria functions.
******************************************************************************/

View File

@ -11,11 +11,6 @@
#include "all.h"
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <time.h>
static bool human_readable_key, loaded_config_file_name_key;

View File

@ -10,7 +10,6 @@
*/
#include "all.h"
#include <float.h>
#include <sys/time.h>
#include <time.h>

View File

@ -10,10 +10,7 @@
*/
#include "all.h"
#include <yajl/yajl_common.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_parse.h>
#include <yajl/yajl_version.h>
/* TODO: refactor the whole parsing thing */

View File

@ -13,6 +13,7 @@
#include <ev.h>
#include <fcntl.h>
#include <libgen.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/socket.h>

View File

@ -8,9 +8,6 @@
*
*/
#include "all.h"
#include "yajl_utils.h"
#include <yajl/yajl_gen.h>
/*
* Match frame and window depth. This is needed because X will refuse to reparent a

View File

@ -7,14 +7,9 @@
*/
#include "all.h"
#include <ev.h>
#include <iconv.h>
#include <signal.h>
#include <sys/wait.h>
#include <X11/keysym.h>
#include <xcb/xcb_event.h>
typedef struct dialog_t {
xcb_window_t id;
xcb_colormap_t colormap;

View File

@ -10,7 +10,6 @@
*/
#include "all.h"
#include <stdarg.h>
#include <sys/wait.h>
#if defined(__OpenBSD__)
#include <sys/cdefs.h>
@ -18,12 +17,6 @@
#include <ctype.h>
#include <fcntl.h>
#include <libgen.h>
#include <pwd.h>
#include <yajl/yajl_version.h>
#define SN_API_NOT_YET_FROZEN 1
#include <libsn/sn-launcher.h>
int min(int a, int b) {
return (a < b ? a : b);