Skip to content

Commit 1b32129

Browse files
committed
modules: cloud: Remove unnecessary ifdefs
The ifdeffing is not needed and can be safely removed. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
1 parent b625c59 commit 1b32129

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

app/src/modules/cloud/cloud.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ static void send_request_failed(void)
340340
}
341341
}
342342

343-
#if defined(CONFIG_APP_NETWORK)
344343
static void handle_network_data_message(const struct network_msg *msg)
345344
{
346345
int err;
@@ -370,7 +369,6 @@ static void handle_network_data_message(const struct network_msg *msg)
370369
send_request_failed();
371370
}
372371
}
373-
#endif /* CONFIG_APP_NETWORK */
374372

375373
/* Storage handling functions */
376374

@@ -427,15 +425,13 @@ static int send_storage_data_to_cloud(const struct storage_data_item *item)
427425
}
428426
#endif /* CONFIG_APP_LOCATION && CONFIG_LOCATION_METHOD_GNSS */
429427

430-
#if defined(CONFIG_APP_NETWORK)
431428
if (item->type == STORAGE_TYPE_NETWORK) {
432429
const struct network_msg *net = &item->data.NETWORK;
433430

434431
handle_network_data_message(net);
435432

436433
return 0;
437434
}
438-
#endif /* CONFIG_APP_NETWORK */
439435

440436
LOG_WRN("Unknown storage data type: %d", item->type);
441437

0 commit comments

Comments
 (0)