Skip to content

Commit 46d09e0

Browse files
authored
[update] remove extra code. (#5663)
1 parent 3df75f9 commit 46d09e0

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

components/finsh/cmd.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@
4040

4141
#define LIST_FIND_OBJ_NR 8
4242

43-
long hello(void)
44-
{
45-
rt_kprintf("Hello RT-Thread!\n");
46-
47-
return 0;
48-
}
49-
MSH_CMD_EXPORT(hello, say hello world);
50-
5143
static long clear(void)
5244
{
5345
rt_kprintf("\x1b[2J\x1b[H");
@@ -886,28 +878,4 @@ long list_device(void)
886878
MSH_CMD_EXPORT(list_device, list device in system);
887879
#endif
888880

889-
long list(void)
890-
{
891-
rt_kprintf("--Commands List:\n");
892-
{
893-
struct finsh_syscall *index;
894-
for (index = _syscall_table_begin;
895-
index < _syscall_table_end;
896-
FINSH_NEXT_SYSCALL(index))
897-
{
898-
/* skip the internal command */
899-
if (strncmp((char *)index->name, "__", 2) == 0) continue;
900-
901-
#if defined(FINSH_USING_DESCRIPTION) && defined(FINSH_USING_SYMTAB)
902-
rt_kprintf("%-16s -- %s\n", index->name, index->desc);
903-
#else
904-
rt_kprintf("%s\n", index->name);
905-
#endif
906-
}
907-
}
908-
909-
return 0;
910-
}
911-
MSH_CMD_EXPORT(list, list all commands in system)
912-
913881
#endif /* RT_USING_FINSH */

0 commit comments

Comments
 (0)