From 856decf2f7e4215ced061a575cb899d0df9fc138 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 31 Oct 2018 21:14:10 -0500 Subject: [PATCH] samples: Remove board.h include Remove including board.h from samples that don't need it. Signed-off-by: Kumar Gala --- samples/basic/button/src/main.c | 1 - samples/basic/threads/src/main.c | 1 - samples/boards/microbit/display/src/main.c | 1 - samples/boards/microbit/pong/src/ble.c | 1 - samples/boards/nrf52/mesh/onoff-app/src/main.c | 2 -- .../boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c | 1 - .../onoff_level_lighting_vnd_app/src/mesh/device_composition.c | 1 - .../mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.c | 1 - .../mesh/onoff_level_lighting_vnd_app/src/mesh/state_binding.c | 1 - .../mesh/onoff_level_lighting_vnd_app/src/mesh/transition.c | 1 - samples/net/irc_bot/src/irc-bot.c | 1 - samples/net/leds_demo/src/leds-demo.c | 1 - samples/net/lwm2m_client/src/lwm2m-client.c | 1 - samples/net/nats/src/main.c | 1 - samples/net/rpl_node/src/main.c | 1 - samples/nfc/nfc_hello/src/main.c | 1 - samples/subsys/nvs/src/main.c | 1 - samples/subsys/power/power_mgr/src/main.c | 1 - samples/subsys/usb/hid-mouse/src/main.c | 1 - 19 files changed, 20 deletions(-) diff --git a/samples/basic/button/src/main.c b/samples/basic/button/src/main.c index 11d0d1e6fbf..21f3c5d6d6e 100644 --- a/samples/basic/button/src/main.c +++ b/samples/basic/button/src/main.c @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/samples/basic/threads/src/main.c b/samples/basic/threads/src/main.c index 852ff59923e..dd6fcb021e6 100644 --- a/samples/basic/threads/src/main.c +++ b/samples/basic/threads/src/main.c @@ -9,7 +9,6 @@ #include #include #include -#include #include /* size of stack area used by each thread */ diff --git a/samples/boards/microbit/display/src/main.c b/samples/boards/microbit/display/src/main.c index 9121cbc22ae..d8f6763c552 100644 --- a/samples/boards/microbit/display/src/main.c +++ b/samples/boards/microbit/display/src/main.c @@ -6,7 +6,6 @@ #include #include -#include #include #include diff --git a/samples/boards/microbit/pong/src/ble.c b/samples/boards/microbit/pong/src/ble.c index c32dc285d87..69eeacf4ec9 100644 --- a/samples/boards/microbit/pong/src/ble.c +++ b/samples/boards/microbit/pong/src/ble.c @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/samples/boards/nrf52/mesh/onoff-app/src/main.c b/samples/boards/nrf52/mesh/onoff-app/src/main.c index 72b1b31dddc..289c7f4cefc 100644 --- a/samples/boards/nrf52/mesh/onoff-app/src/main.c +++ b/samples/boards/nrf52/mesh/onoff-app/src/main.c @@ -49,8 +49,6 @@ #include #include -#include - /* Model Operation Codes */ #define BT_MESH_MODEL_OP_GEN_ONOFF_GET BT_MESH_MODEL_OP_2(0x82, 0x01) #define BT_MESH_MODEL_OP_GEN_ONOFF_SET BT_MESH_MODEL_OP_2(0x82, 0x02) diff --git a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c index d35dd9200af..ef9cac227f5 100644 --- a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c +++ b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include "ble_mesh.h" diff --git a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c index 64e9b3be262..26572ce4a8e 100644 --- a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c +++ b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include "common.h" diff --git a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.c b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.c index 9234c4f5f97..e65ff068bac 100644 --- a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.c +++ b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include "common.h" diff --git a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/state_binding.c b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/state_binding.c index 0d8633fd10f..49ace886e84 100644 --- a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/state_binding.c +++ b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/state_binding.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include "common.h" diff --git a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/transition.c b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/transition.c index 246eb245f18..aa59122c195 100644 --- a/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/transition.c +++ b/samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/mesh/transition.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include "common.h" diff --git a/samples/net/irc_bot/src/irc-bot.c b/samples/net/irc_bot/src/irc-bot.c index a4ef09e3c49..1235f263358 100644 --- a/samples/net/irc_bot/src/irc-bot.c +++ b/samples/net/irc_bot/src/irc-bot.c @@ -8,7 +8,6 @@ #define LOG_MODULE_NAME net_irc_bot #define NET_LOG_LEVEL LOG_LEVEL_DBG -#include #include #include #include diff --git a/samples/net/leds_demo/src/leds-demo.c b/samples/net/leds_demo/src/leds-demo.c index 4d3d7dd35d1..6eafc7edd82 100644 --- a/samples/net/leds_demo/src/leds-demo.c +++ b/samples/net/leds_demo/src/leds-demo.c @@ -10,7 +10,6 @@ #include #include -#include #include #include diff --git a/samples/net/lwm2m_client/src/lwm2m-client.c b/samples/net/lwm2m_client/src/lwm2m-client.c index 564accac11b..c533022661a 100644 --- a/samples/net/lwm2m_client/src/lwm2m-client.c +++ b/samples/net/lwm2m_client/src/lwm2m-client.c @@ -11,7 +11,6 @@ #include LOG_MODULE_REGISTER(LOG_MODULE_NAME); -#include #include #include #include diff --git a/samples/net/nats/src/main.c b/samples/net/nats/src/main.c index fc98e5e77d6..9afae34529d 100644 --- a/samples/net/nats/src/main.c +++ b/samples/net/nats/src/main.c @@ -7,7 +7,6 @@ #define LOG_MODULE_NAME net_nats_app_main #define NET_LOG_LEVEL LOG_LEVEL_DBG -#include #include #include #include diff --git a/samples/net/rpl_node/src/main.c b/samples/net/rpl_node/src/main.c index 0943577fca8..574d4e6f933 100644 --- a/samples/net/rpl_node/src/main.c +++ b/samples/net/rpl_node/src/main.c @@ -9,7 +9,6 @@ #include #include -#include #include #include diff --git a/samples/nfc/nfc_hello/src/main.c b/samples/nfc/nfc_hello/src/main.c index 7622d792cdd..2e9c1709335 100644 --- a/samples/nfc/nfc_hello/src/main.c +++ b/samples/nfc/nfc_hello/src/main.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include diff --git a/samples/subsys/nvs/src/main.c b/samples/subsys/nvs/src/main.c index dd310824e49..a2e154e56cc 100644 --- a/samples/subsys/nvs/src/main.c +++ b/samples/subsys/nvs/src/main.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/samples/subsys/power/power_mgr/src/main.c b/samples/subsys/power/power_mgr/src/main.c index de8c27fbe49..a16b06ef4e1 100644 --- a/samples/subsys/power/power_mgr/src/main.c +++ b/samples/subsys/power/power_mgr/src/main.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include diff --git a/samples/subsys/usb/hid-mouse/src/main.c b/samples/subsys/usb/hid-mouse/src/main.c index 4bff3c7a3cc..210793d4551 100644 --- a/samples/subsys/usb/hid-mouse/src/main.c +++ b/samples/subsys/usb/hid-mouse/src/main.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ #include -#include #include #include