Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[build] Remove unneeded include statements
The include files required by modules/headers changes over time.
While missing headers cause compilation errors and are thus fixed
promptly, the same does not apply for excess/redundant includes.

Mass remove all includes that are no longer needed.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 1, 2018
1 parent 02b711f commit 4e3a251
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 100 deletions.
40 changes: 0 additions & 40 deletions .depend
Expand Up @@ -9,7 +9,6 @@ builtin-gconf.o:\
mce.h\
modules/display.h\
modules/doubletap.h\
modules/filter-brightness-als.h\
modules/led.h\
modules/memnotify.h\
modules/powersavemode.h\
Expand All @@ -28,7 +27,6 @@ builtin-gconf.pic.o:\
mce.h\
modules/display.h\
modules/doubletap.h\
modules/filter-brightness-als.h\
modules/led.h\
modules/memnotify.h\
modules/powersavemode.h\
Expand Down Expand Up @@ -194,10 +192,8 @@ mce-dsme.o:\
mce-dsme.c\
builtin-gconf.h\
datapipe.h\
mce-conf.h\
mce-dbus.h\
mce-dsme.h\
mce-lib.h\
mce-log.h\
mce-worker.h\
mce.h\
Expand All @@ -206,10 +202,8 @@ mce-dsme.pic.o:\
mce-dsme.c\
builtin-gconf.h\
datapipe.h\
mce-conf.h\
mce-dbus.h\
mce-dsme.h\
mce-lib.h\
mce-log.h\
mce-worker.h\
mce.h\
Expand Down Expand Up @@ -378,21 +372,15 @@ mce-wakelock.pic.o:\

mce-wltimer.o:\
mce-wltimer.c\
datapipe.h\
mce-lib.h\
mce-log.h\
mce-wakelock.h\
mce-wltimer.h\
mce.h\

mce-wltimer.pic.o:\
mce-wltimer.c\
datapipe.h\
mce-lib.h\
mce-log.h\
mce-wakelock.h\
mce-wltimer.h\
mce.h\

mce-worker.o:\
mce-worker.c\
Expand Down Expand Up @@ -612,7 +600,6 @@ modules/camera.o:\
mce-conf.h\
mce-io.h\
mce.h\
mce.h\
tklock.h\
modules/camera.h\

Expand All @@ -622,7 +609,6 @@ modules/camera.pic.o:\
mce-conf.h\
mce-io.h\
mce.h\
mce.h\
tklock.h\
modules/camera.h\

Expand Down Expand Up @@ -659,7 +645,6 @@ modules/display.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.h\
modules/powersavemode.h\
Expand All @@ -681,7 +666,6 @@ modules/display.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.h\
modules/powersavemode.h\
Expand Down Expand Up @@ -720,7 +704,6 @@ modules/filter-brightness-als.o:\
mce-setting.h\
mce-wakelock.h\
mce.h\
mce.h\
tklock.h\
modules/display.h\
modules/filter-brightness-als.h\
Expand All @@ -737,7 +720,6 @@ modules/filter-brightness-als.pic.o:\
mce-setting.h\
mce-wakelock.h\
mce.h\
mce.h\
tklock.h\
modules/display.h\
modules/filter-brightness-als.h\
Expand Down Expand Up @@ -827,21 +809,17 @@ modules/led.pic.o:\
modules/memnotify.o:\
modules/memnotify.c\
builtin-gconf.h\
datapipe.h\
mce-dbus.h\
mce-log.h\
mce-setting.h\
mce.h\
modules/memnotify.h\

modules/memnotify.pic.o:\
modules/memnotify.c\
builtin-gconf.h\
datapipe.h\
mce-dbus.h\
mce-log.h\
mce-setting.h\
mce.h\
modules/memnotify.h\

modules/packagekit.o:\
Expand Down Expand Up @@ -928,7 +906,6 @@ modules/sensor-gestures.o:\
datapipe.h\
mce-dbus.h\
mce-log.h\
mce-sensorfw.h\
mce-setting.h\
mce.h\
modules/display.h\
Expand All @@ -939,7 +916,6 @@ modules/sensor-gestures.pic.o:\
datapipe.h\
mce-dbus.h\
mce-log.h\
mce-sensorfw.h\
mce-setting.h\
mce.h\
modules/display.h\
Expand Down Expand Up @@ -974,7 +950,6 @@ powerkey.o:\
datapipe.h\
evdev.h\
libwakelock.h\
mce-conf.h\
mce-dbus.h\
mce-dsme.h\
mce-lib.h\
Expand All @@ -992,7 +967,6 @@ powerkey.pic.o:\
datapipe.h\
evdev.h\
libwakelock.h\
mce-conf.h\
mce-dbus.h\
mce-dsme.h\
mce-lib.h\
Expand Down Expand Up @@ -1021,7 +995,6 @@ tests/ut/ut_display.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1045,7 +1018,6 @@ tests/ut/ut_display.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1070,7 +1042,6 @@ tests/ut/ut_display_blanking_inhibit.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1095,7 +1066,6 @@ tests/ut/ut_display_blanking_inhibit.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1120,7 +1090,6 @@ tests/ut/ut_display_conf.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1145,7 +1114,6 @@ tests/ut/ut_display_conf.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1170,7 +1138,6 @@ tests/ut/ut_display_filter.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1195,7 +1162,6 @@ tests/ut/ut_display_filter.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1220,7 +1186,6 @@ tests/ut/ut_display_stm.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1245,7 +1210,6 @@ tests/ut/ut_display_stm.pic.o:\
mce-setting.h\
mce-worker.h\
mce.h\
mce.h\
tklock.h\
modules/display.c\
modules/display.h\
Expand All @@ -1258,7 +1222,6 @@ tklock.o:\
datapipe.h\
evdev.h\
libwakelock.h\
mce-conf.h\
mce-dbus.h\
mce-hbtimer.h\
mce-io.h\
Expand All @@ -1278,7 +1241,6 @@ tklock.pic.o:\
datapipe.h\
evdev.h\
libwakelock.h\
mce-conf.h\
mce-dbus.h\
mce-hbtimer.h\
mce-io.h\
Expand Down Expand Up @@ -1322,7 +1284,6 @@ tools/mcetool.o:\
mce.h\
modules/display.h\
modules/doubletap.h\
modules/filter-brightness-als.h\
modules/led.h\
modules/memnotify.h\
modules/powersavemode.h\
Expand All @@ -1340,7 +1301,6 @@ tools/mcetool.pic.o:\
mce.h\
modules/display.h\
modules/doubletap.h\
modules/filter-brightness-als.h\
modules/led.h\
modules/memnotify.h\
modules/powersavemode.h\
Expand Down
1 change: 0 additions & 1 deletion builtin-gconf.c
Expand Up @@ -27,7 +27,6 @@
#include "event-input.h"

#include "modules/memnotify.h"
#include "modules/filter-brightness-als.h"
#include "modules/display.h"
#include "modules/proximity.h"
#include "modules/powersavemode.h"
Expand Down
3 changes: 0 additions & 3 deletions event-input.c
Expand Up @@ -39,13 +39,10 @@
#include <mce/dbus-names.h>
#include <mce/mode-names.h>

#include <linux/input.h>

#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>

#include <glib/gstdio.h>
#include <gio/gio.h>
Expand Down
1 change: 0 additions & 1 deletion mce-dbus.c
Expand Up @@ -30,7 +30,6 @@

#include "systemui/dbus-names.h"

#include <sys/types.h>
#include <sys/stat.h>

#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions mce-dbus.h
Expand Up @@ -23,8 +23,6 @@

#include "builtin-gconf.h"

#include <stdbool.h>

#include <dbus/dbus.h>

/* ========================================================================= *
Expand Down
3 changes: 0 additions & 3 deletions mce-dsme.c
Expand Up @@ -28,14 +28,11 @@

#include "mce.h"
#include "mce-log.h"
#include "mce-lib.h"
#include "mce-conf.h"
#include "mce-dbus.h"
#include "mce-worker.h"

#include <stdlib.h>
#include <unistd.h>
#include <errno.h>

#include <dsme/state.h>
#include <dsme/protocol.h>
Expand Down
2 changes: 0 additions & 2 deletions mce-fbdev.c
Expand Up @@ -34,9 +34,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <time.h>

/* ========================================================================= *
* CONSTANTS
Expand Down
3 changes: 0 additions & 3 deletions mce-hbtimer.c
Expand Up @@ -34,14 +34,11 @@
# include "libwakelock.h"
#endif

#include <sys/types.h>
#include <sys/socket.h>

#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>

Expand Down
1 change: 0 additions & 1 deletion mce-io.c
Expand Up @@ -30,7 +30,6 @@
# include "libwakelock.h"
#endif

#include <stdbool.h>
#include <unistd.h>
#include <inttypes.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion mce-sensorfw.c
Expand Up @@ -38,7 +38,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion mce-setting.c
Expand Up @@ -25,7 +25,6 @@

#include "mce-log.h"

#include <stdlib.h>
#include <string.h>

/** Pointer to the GConf client */
Expand Down
2 changes: 0 additions & 2 deletions mce-wltimer.c
Expand Up @@ -26,9 +26,7 @@

#include "mce-wltimer.h"

#include "mce.h"
#include "mce-log.h"
#include "mce-lib.h"
#include "mce-wakelock.h"

#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion mce-worker.c
Expand Up @@ -29,7 +29,6 @@

#include <sys/eventfd.h>

#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
Expand Down

0 comments on commit 4e3a251

Please sign in to comment.