From c92538dfaa5eb7e9b2773f158cbb310545116abe Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Aug 2012 17:07:35 +0200 Subject: Remove dead code This was done with the help of callcatcher [1]. Only functions which are statically known to be unused are removed. Some unused functions are not removed yet, because they might be needed in the near future (such as open_output_stream for the encode branch). There is one user visible change: the --subcc option did nothing, and is removed with this commit. [1] http://www.skynet.ie/~caolan/Packages/callcatcher.html --- input/input.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index 73e48436dd..e162572bed 100644 --- a/input/input.c +++ b/input/input.c @@ -859,30 +859,6 @@ int mp_input_add_key_fd(struct input_ctx *ictx, int fd, int select, return 1; } -int mp_input_parse_and_queue_cmds(struct input_ctx *ictx, const char *str) -{ - int cmd_num = 0; - - while (*str == '\n' || *str == '\r' || *str == ' ') - ++str; - while (*str) { - mp_cmd_t *cmd; - size_t len = strcspn(str, "\r\n"); - char *cmdbuf = talloc_size(NULL, len + 1); - av_strlcpy(cmdbuf, str, len + 1); - cmd = mp_input_parse_cmd(cmdbuf); - if (cmd) { - mp_input_queue_cmd(ictx, cmd); - ++cmd_num; - } - str += len; - while (*str == '\n' || *str == '\r' || *str == ' ') - ++str; - talloc_free(cmdbuf); - } - return cmd_num; -} - mp_cmd_t *mp_input_parse_cmd(char *str) { int i, l; -- cgit v1.2.3