From 2d7d4d213db500871d6869ba470d7751545636f2 Mon Sep 17 00:00:00 2001 From: Leo C Date: Thu, 18 Dec 2014 23:37:42 +0100 Subject: [PATCH] Remove obsolete debug code --- TODO | 1 - TODO.md | 5 +++++ avr/command_tbl.c | 16 ---------------- avr/debug.c | 11 ----------- 4 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 TODO create mode 100644 TODO.md diff --git a/TODO b/TODO deleted file mode 100644 index 7b8d92f..0000000 --- a/TODO +++ /dev/null @@ -1 +0,0 @@ -TODO: eliminate xmalloc diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..8e0686d --- /dev/null +++ b/TODO.md @@ -0,0 +1,5 @@ +TODO List +========= + +- TODO: eliminate xmalloc +- TODO: build time directory as lib diff --git a/avr/command_tbl.c b/avr/command_tbl.c index b70c711..a2f99da 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -30,7 +30,6 @@ extern command_ret_t do_fat_ls(cmd_tbl_t *, int, int, char * const []); //extern command_ret_t do_fat_read(cmd_tbl_t *, int, int, char * const []); //extern command_ret_t do_fat_write(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_fat_rw(cmd_tbl_t *, int, int, char * const []); -extern command_ret_t do_testarg(cmd_tbl_t *, int, int, char * const []); #ifdef CONFIG_SYS_LONGHELP const FLASH char sd_help_text[] = @@ -51,21 +50,6 @@ CMD_TBL_ITEM( ), #ifdef DEBUG -CMD_TBL_ITEM( - test, CONFIG_SYS_MAXARGS, 1, do_testarg, - "print arguments", - "" -), -CMD_TBL_ITEM( - tst1, CONFIG_SYS_MAXARGS, 1, do_testarg, - "print arguments", - "" -), -CMD_TBL_ITEM( - tst2, CONFIG_SYS_MAXARGS, 1, do_testarg, - "print arguments", - "" -), CMD_TBL_ITEM( !mdr, 3, 1, do_dump_mem, diff --git a/avr/debug.c b/avr/debug.c index 5096d59..251ef26 100644 --- a/avr/debug.c +++ b/avr/debug.c @@ -122,17 +122,6 @@ command_ret_t do_eep_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[ /*------------------------------------------------------------------------------*/ -command_ret_t do_testarg(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - my_puts_P(cmdtp->name); - printf_P(PSTR("\n%s\n"), argv[0]); - - return CMD_RET_SUCCESS; -} - -/*------------------------------------------------------------------------------*/ - - #if 1 struct __freelist { -- 2.39.2