From b92cf6de6992a01698c9753d67517a9a99403a47 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 19 Nov 2019 21:07:15 +0100 Subject: [PATCH] Remove the obsolete hwos parameter In commit 2829f7ebf9902170bf653d67dbe412a0a4f140cf, the hwos parameter of the hw_ostc_parser_create() function was kept to preserve backwards compatibility. Since the function has been removed from the public api, the parameter can be removed now. --- src/hw_ostc.h | 2 +- src/hw_ostc_parser.c | 4 ++-- src/parser.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hw_ostc.h b/src/hw_ostc.h index a0ce743..fc45182 100644 --- a/src/hw_ostc.h +++ b/src/hw_ostc.h @@ -36,7 +36,7 @@ dc_status_t hw_ostc_device_open (dc_device_t **device, dc_context_t *context, dc_iostream_t *iostream); dc_status_t -hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int hwos); +hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context); #ifdef __cplusplus } diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c index 8c80588..5130d63 100644 --- a/src/hw_ostc_parser.c +++ b/src/hw_ostc_parser.c @@ -332,9 +332,9 @@ hw_ostc_parser_create_internal (dc_parser_t **out, dc_context_t *context, unsign dc_status_t -hw_ostc_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int hwos) +hw_ostc_parser_create (dc_parser_t **out, dc_context_t *context) { - return hw_ostc_parser_create_internal (out, context, hwos, 0); + return hw_ostc_parser_create_internal (out, context, 0, 0); } dc_status_t diff --git a/src/parser.c b/src/parser.c index 6a236e6..9203490 100644 --- a/src/parser.c +++ b/src/parser.c @@ -132,7 +132,7 @@ dc_parser_new_internal (dc_parser_t **out, dc_context_t *context, dc_family_t fa rc = mares_iconhd_parser_create (&parser, context, model); break; case DC_FAMILY_HW_OSTC: - rc = hw_ostc_parser_create (&parser, context, 0); + rc = hw_ostc_parser_create (&parser, context); break; case DC_FAMILY_HW_FROG: case DC_FAMILY_HW_OSTC3: