Skip to content

Commit

Permalink
net: shell: Removing extra stuff that is not needed
Browse files Browse the repository at this point in the history
The remaining stuff that is not used in net_shell.c can be removed.

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar authored and carlescufi committed Oct 23, 2023
1 parent aab3713 commit 34cd82e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
5 changes: 0 additions & 5 deletions subsys/net/lib/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,3 @@ zephyr_library_sources(udp.c)
zephyr_library_sources(virtual.c)
zephyr_library_sources(vlan.c)
zephyr_library_sources(websocket.c)

zephyr_library_include_directories(
${ZEPHYR_BASE}/kernel/include
${ARCH_DIR}/${ARCH}/include
)
34 changes: 0 additions & 34 deletions subsys/net/lib/shell/net_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,12 @@
LOG_MODULE_REGISTER(net_shell, LOG_LEVEL_DBG);

#include <zephyr/kernel.h>
#include <kernel_internal.h>
#include <zephyr/pm/device.h>
#include <zephyr/random/random.h>
#include <stdlib.h>
#include <stdio.h>
#include <zephyr/shell/shell.h>
#include <zephyr/shell/shell_uart.h>

#include <zephyr/net/net_if.h>
#include <zephyr/sys/printk.h>

#include "common.h"

#include "connection.h"

#if defined(CONFIG_NET_L2_ETHERNET_MGMT)
#include <zephyr/net/ethernet_mgmt.h>
#endif

#if defined(CONFIG_NET_L2_VIRTUAL_MGMT)
#include <zephyr/net/virtual_mgmt.h>
#endif

#if defined(CONFIG_NET_L2_PPP)
#include <zephyr/net/ppp.h>
#include "ppp/ppp_internal.h"
#endif

#include "net_shell.h"

#include <zephyr/sys/fdtable.h>

int get_iface_idx(const struct shell *sh, char *index_str)
{
char *endptr;
Expand Down Expand Up @@ -248,14 +222,6 @@ SHELL_DYNAMIC_CMD_CREATE(iface_index, iface_index_get);

#endif /* CONFIG_NET_SHELL_DYN_CMD_COMPLETION */



SHELL_STATIC_SUBCMD_SET_CREATE(net_commands,
SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(net_old, &net_commands, "Networking commands", NULL);

/* Placeholder for net commands that are configured in the rest of the .c files */
SHELL_SUBCMD_SET_CREATE(net_cmds, (net));

Expand Down

0 comments on commit 34cd82e

Please sign in to comment.