Remove unused headers
With help from https://github.com/include-what-you-use/include-what-you-use/
This commit is contained in:
@ -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;
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include "shmlog.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <float.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -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)
|
||||
|
@ -9,9 +9,6 @@
|
||||
*/
|
||||
#include "all.h"
|
||||
|
||||
#include <float.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/*******************************************************************************
|
||||
* Criteria functions.
|
||||
******************************************************************************/
|
||||
|
@ -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;
|
||||
|
@ -10,7 +10,6 @@
|
||||
*/
|
||||
#include "all.h"
|
||||
|
||||
#include <float.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user