From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWfQL-0006Gn-DY for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWfQD-0004C0-SS for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:49 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:60948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWfQD-0004Be-Jc for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:41 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 14 Mar 2015 06:19:40 -0000 From: Thomas Huth Date: Sat, 14 Mar 2015 07:19:31 +0100 Message-Id: <1426313974-25607-5-git-send-email-thuth@linux.vnet.ibm.com> In-Reply-To: <1426313974-25607-1-git-send-email-thuth@linux.vnet.ibm.com> References: <1426313974-25607-1-git-send-email-thuth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 4/7] monitor: Remove unused functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: Thomas Huth , Luiz Capitulino The functions ringbuf_read_completion() and monitor_get_rs() are not used anywhere anymore, so let's remove them. Signed-off-by: Thomas Huth Cc: Luiz Capitulino --- hmp.h | 1 - include/monitor/monitor.h | 1 - monitor.c | 13 ------------- 3 files changed, 0 insertions(+), 15 deletions(-) diff --git a/hmp.h b/hmp.h index 81177b2..0c96e9a 100644 --- a/hmp.h +++ b/hmp.h @@ -106,7 +106,6 @@ void set_link_completion(ReadLineState *rs, int nb_args, const char *str); void netdev_add_completion(ReadLineState *rs, int nb_args, const char *str); void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str); void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str); -void ringbuf_read_completion(ReadLineState *rs, int nb_args, const char *str); void watchdog_action_completion(ReadLineState *rs, int nb_args, const char *str); void migrate_set_capability_completion(ReadLineState *rs, int nb_args, diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index 1c06bed..df67d56 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -47,7 +47,6 @@ typedef void (MonitorCompletion)(void *opaque, QObject *ret_data); void monitor_set_error(Monitor *mon, QError *qerror); void monitor_read_command(Monitor *mon, int show_prompt); -ReadLineState *monitor_get_rs(Monitor *mon); int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func, void *opaque); diff --git a/monitor.c b/monitor.c index c86a89e..18d7f23 100644 --- a/monitor.c +++ b/monitor.c @@ -4385,14 +4385,6 @@ static void ringbuf_completion(ReadLineState *rs, const char *str) qapi_free_ChardevInfoList(start); } -void ringbuf_read_completion(ReadLineState *rs, int nb_args, const char *str) -{ - if (nb_args != 2) { - return; - } - ringbuf_completion(rs, str); -} - void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str) { if (nb_args != 2) { @@ -5370,11 +5362,6 @@ static void bdrv_password_cb(void *opaque, const char *password, monitor_read_command(mon, 1); } -ReadLineState *monitor_get_rs(Monitor *mon) -{ - return mon->rs; -} - int monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs, BlockCompletionFunc *completion_cb, void *opaque) -- 1.7.1