From 570c9356a987e1b20feb4f3b8dda31e860cc33ba Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Wed, 24 Sep 2014 09:35:29 +0200 Subject: [PATCH] shared/hfp: Remove not used permissive_syntax value It was planned to be used in case of some unspecified commands, but in the end we did not have to use it --- src/shared/hfp.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/shared/hfp.c b/src/shared/hfp.c index 196e77720..efc981fae 100644 --- a/src/shared/hfp.c +++ b/src/shared/hfp.c @@ -46,7 +46,6 @@ struct hfp_gw { struct ringbuf *write_buf; struct queue *cmd_handlers; bool writer_active; - bool permissive_syntax; bool result_pending; hfp_command_func_t command_callback; hfp_destroy_func_t command_destroy; @@ -507,7 +506,6 @@ struct hfp_gw *hfp_gw_new(int fd) } hfp->writer_active = false; - hfp->permissive_syntax = false; hfp->result_pending = false; return hfp_gw_ref(hfp); @@ -610,16 +608,6 @@ bool hfp_gw_set_close_on_unref(struct hfp_gw *hfp, bool do_close) return true; } -bool hfp_gw_set_permissive_syntax(struct hfp_gw *hfp, bool permissive) -{ - if (!hfp) - return false; - - hfp->permissive_syntax = permissive; - - return true; -} - bool hfp_gw_send_result(struct hfp_gw *hfp, enum hfp_result result) { const char *str; -- 2.47.3