Skip to content

Commit 29c2b12

Browse files
tokangasanangl
authored andcommitted
lib: lte_link_control: Remove obsolete Unity flagging
Removed CONFIG_UNITY flagging which is no longer used. Signed-off-by: Tommi Kangas <[email protected]>
1 parent 1c67a11 commit 29c2b12

File tree

8 files changed

+0
-42
lines changed

8 files changed

+0
-42
lines changed

lib/lte_link_control/modules/cereg.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,9 @@ static bool is_cellid_valid(uint32_t cellid)
5252
return true;
5353
}
5454

55-
#if defined(CONFIG_UNITY)
56-
int parse_cereg(const char *at_response, enum lte_lc_nw_reg_status *reg_status,
57-
struct lte_lc_cell *cell, enum lte_lc_lte_mode *lte_mode,
58-
struct lte_lc_psm_cfg *psm_cfg)
59-
#else
6055
static int parse_cereg(const char *at_response, enum lte_lc_nw_reg_status *reg_status,
6156
struct lte_lc_cell *cell, enum lte_lc_lte_mode *lte_mode,
6257
struct lte_lc_psm_cfg *psm_cfg)
63-
#endif /* CONFIG_UNITY */
6458
{
6559
int err, temp;
6660
struct at_parser parser;

lib/lte_link_control/modules/cscon.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ AT_MONITOR(ltelc_atmon_cscon, "+CSCON", at_handler_cscon);
3636
*
3737
* @return Zero on success or (negative) error code otherwise.
3838
*/
39-
#if defined(CONFIG_UNITY)
40-
int parse_rrc_mode(const char *at_response, enum lte_lc_rrc_mode *mode, size_t mode_index)
41-
#else
4239
static int parse_rrc_mode(const char *at_response, enum lte_lc_rrc_mode *mode, size_t mode_index)
43-
#endif /* CONFIG_UNITY */
4440
{
4541
int err, temp_mode;
4642
struct at_parser parser;

lib/lte_link_control/modules/edrx.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,9 @@ static void get_edrx_value(enum lte_lc_lte_mode lte_mode, uint8_t idx, float *ed
173173
*edrx_value = multiplier == 0 ? 5.12 : multiplier * 10.24;
174174
}
175175

176-
#if defined(CONFIG_UNITY)
177-
int parse_edrx(const char *at_response, struct lte_lc_edrx_cfg *cfg, char *edrx_str,
178-
char *ptw_str)
179-
#else
180176
/* Parses eDRX parameters from a +CEDRXS notification or a +CEDRXRDP response. */
181177
static int parse_edrx(const char *at_response, struct lte_lc_edrx_cfg *cfg, char *edrx_str,
182178
char *ptw_str)
183-
#endif /* CONFIG_UNITY */
184179
{
185180
int err, tmp_int;
186181
uint8_t idx;

lib/lte_link_control/modules/mdmev.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ AT_MONITOR(ltelc_atmon_mdmev, "%MDMEV", at_handler_mdmev);
3939

4040
bool mdmev_enabled;
4141

42-
#if defined(CONFIG_UNITY)
43-
int mdmev_parse(const char *at_response, enum lte_lc_modem_evt *modem_evt)
44-
#else
4542
static int mdmev_parse(const char *at_response, enum lte_lc_modem_evt *modem_evt)
46-
#endif /* CONFIG_UNITY */
4743
{
4844
static const char *const event_types[] = {
4945
[LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE] = AT_MDMEV_SEARCH_STATUS_1,

lib/lte_link_control/modules/periodicsearchconf.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@
1919

2020
LOG_MODULE_DECLARE(lte_lc, CONFIG_LTE_LINK_CONTROL_LOG_LEVEL);
2121

22-
#if defined(CONFIG_UNITY)
23-
int periodicsearchconf_parse(const char *const pattern_str,
24-
struct lte_lc_periodic_search_pattern *pattern)
25-
#else
2622
static int periodicsearchconf_parse(const char *const pattern_str,
2723
struct lte_lc_periodic_search_pattern *pattern)
28-
#endif /* CONFIG_UNITY */
2924
{
3025
int err;
3126
int values[5];
@@ -79,15 +74,9 @@ static int periodicsearchconf_parse(const char *const pattern_str,
7974
return 0;
8075
}
8176

82-
#if defined(CONFIG_UNITY)
83-
char *
84-
periodicsearchconf_pattern_get(char *const buf, size_t buf_size,
85-
const struct lte_lc_periodic_search_pattern *const pattern)
86-
#else
8777
static char *
8878
periodicsearchconf_pattern_get(char *const buf, size_t buf_size,
8979
const struct lte_lc_periodic_search_pattern *const pattern)
90-
#endif /* CONFIG_UNITY */
9180
{
9281
int len = 0;
9382

lib/lte_link_control/modules/psm.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,7 @@ static int psm_encode_timer(char *encoded_timer_str, uint32_t requested_value,
177177
return 0;
178178
}
179179

180-
#if defined(CONFIG_UNITY)
181-
int psm_encode(char *tau_ext_str, char *active_time_str, int rptau, int rat)
182-
#else
183180
static int psm_encode(char *tau_ext_str, char *active_time_str, int rptau, int rat)
184-
#endif /* CONFIG_UNITY */
185181
{
186182
int ret = 0;
187183

lib/lte_link_control/modules/xmodemsleep.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ LOG_MODULE_DECLARE(lte_lc, CONFIG_LTE_LINK_CONTROL_LOG_LEVEL);
2727

2828
AT_MONITOR(ltelc_atmon_xmodemsleep, "%XMODEMSLEEP", at_handler_xmodemsleep);
2929

30-
#if defined(CONFIG_UNITY)
31-
int parse_xmodemsleep(const char *at_response, struct lte_lc_modem_sleep *modem_sleep)
32-
#else
3330
static int parse_xmodemsleep(const char *at_response, struct lte_lc_modem_sleep *modem_sleep)
34-
#endif /* CONFIG_UNITY */
3531
{
3632
int err;
3733
struct at_parser parser;

lib/lte_link_control/modules/xt3412.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ AT_MONITOR(ltelc_atmon_xt3412, "%XT3412", at_handler_xt3412);
2626
#define AT_XT3412_TIME_INDEX 1
2727
#define T3412_MAX 35712000000
2828

29-
#if defined(CONFIG_UNITY)
30-
int parse_xt3412(const char *at_response, uint64_t *time)
31-
#else
3229
static int parse_xt3412(const char *at_response, uint64_t *time)
33-
#endif /* CONFIG_UNITY */
3430
{
3531
int err;
3632
struct at_parser parser;

0 commit comments

Comments
 (0)