summaryrefslogtreecommitdiffstats
path: root/src/vlib/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/cli.c')
-rw-r--r--src/vlib/cli.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/vlib/cli.c b/src/vlib/cli.c
index 80da2d59992..c43371e0d9f 100644
--- a/src/vlib/cli.c
+++ b/src/vlib/cli.c
@@ -159,46 +159,6 @@ done:
return match;
}
-/* Get current command args */
-uword
-unformat_vlib_cli_args (unformat_input_t *i, va_list *va)
-{
- unformat_input_t *result = va_arg (*va, unformat_input_t *);
- u8 *line;
- uword last_c;
- u32 index = i->index;
-
- if (unformat_is_eof (i))
- {
- unformat_init (result, 0, 0);
- return 0;
- }
-
- /* try to find last non-space character */
- do
- {
- ASSERT (index > 0);
- last_c = i->buffer[--index];
- }
- while (last_c == ' ');
-
- if (last_c == '\t' || last_c == '\n' || last_c == '\r' || last_c == '\f' ||
- last_c == '}')
- {
- /* current command has no args */
- unformat_init (result, 0, 0);
- return 0;
- }
-
- if (!unformat_user (i, unformat_line, &line))
- {
- unformat_init (result, 0, 0);
- return 0;
- }
- unformat_init_vector (result, line);
- return 1;
-}
-
uword
unformat_vlib_cli_line (unformat_input_t *i, va_list *va)
{