From d69becb6f31f24532f145a30a33dec246053fefe Mon Sep 17 00:00:00 2001 From: MAY Date: Sat, 25 Apr 2026 01:13:42 +0200 Subject: [PATCH] headers: remove unimplemented and stale API prototypes This commit cleans up header declarations by removing API and test prototypes that have no corresponding implementation in the repository. Impact: - No runtime behavior change. - Compile/link surface is cleaner and more accurate for users and tests. --- common/core/inc/ux_api.h | 7 ------- common/usbx_pictbridge/inc/ux_pictbridge.h | 3 --- test/regression/ux_device_class_dummy.h | 1 - test/regression/ux_test.h | 1 - 4 files changed, 12 deletions(-) diff --git a/common/core/inc/ux_api.h b/common/core/inc/ux_api.h index c6fa5aad..a9daa956 100644 --- a/common/core/inc/ux_api.h +++ b/common/core/inc/ux_api.h @@ -2745,7 +2745,6 @@ typedef struct UX_HOST_CLASS_DPUMP_STRUCT #define ux_device_stack_transfer_run _ux_device_stack_transfer_run #define ux_hcd_ehci_initialize _ux_hcd_ehci_initialize -#define ux_hcd_isp1161_initialize _ux_hcd_isp1161_initialize #define ux_hcd_ohci_initialize _ux_hcd_ohci_initialize #define ux_hcd_sim_host_initialize _ux_hcd_sim_host_initialize #define ux_dcd_sim_slave_initialize _ux_dcd_sim_slave_initialize @@ -2769,7 +2768,6 @@ UINT uxe_system_initialize(VOID *non_cached_memory_pool_start, ULONG non_cach /* Define USBX Host API prototypes. */ UINT ux_hcd_ehci_initialize(UX_HCD *hcd); -UINT ux_hcd_isp1161_initialize(UX_HCD *hcd); UINT ux_hcd_ohci_initialize(UX_HCD *hcd); UINT ux_hcd_sim_host_initialize(UX_HCD *hcd); @@ -2805,13 +2803,9 @@ UINT ux_host_stack_transfer_run(UX_TRANSFER *transfer_request); /* Define USBX Device API prototypes. */ -UINT ux_dcd_at91_initialize(ULONG dcd_io); -UINT ux_dcd_isp1181_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address); -UINT ux_dcd_ml6965_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address); UINT ux_dcd_sim_slave_initialize(VOID); UINT ux_device_class_storage_entry(UX_SLAVE_CLASS_COMMAND *command); -VOID ux_device_class_storage_thread(ULONG); UINT ux_device_stack_alternate_setting_get(ULONG interface_value); UINT ux_device_stack_alternate_setting_set(ULONG interface_value, ULONG alternate_setting_value); UINT ux_device_stack_class_register(UCHAR *class_name, @@ -2839,7 +2833,6 @@ UINT ux_device_stack_interface_set(UCHAR * device_framework, ULONG device_fra ULONG alternate_setting_value); UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *ux_interface); UINT ux_device_stack_transfer_request(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length); -UINT ux_device_stack_transfer_request_abort(UX_SLAVE_TRANSFER *transfer_request, ULONG completion_code); UINT ux_device_stack_microsoft_extension_register(ULONG vendor_request, UINT (*vendor_request_function)(ULONG, ULONG, ULONG, ULONG, UCHAR *, ULONG *)); diff --git a/common/usbx_pictbridge/inc/ux_pictbridge.h b/common/usbx_pictbridge/inc/ux_pictbridge.h index 188aa604..ef43b364 100644 --- a/common/usbx_pictbridge/inc/ux_pictbridge.h +++ b/common/usbx_pictbridge/inc/ux_pictbridge.h @@ -963,9 +963,6 @@ UINT _ux_pictbridge_object_tag_line_add(UCHAR *pima_object_buffer, UCHAR **pima_object_buffer_updated, ULONG *object_length_updated); -UINT _ux_pictbridge_input_object_create(UX_PICTBRIDGE *pictbridge, ULONG input_function); - - /* Define external strings and xml tag lines. */ extern UCHAR _ux_pictbridge_volume_description[]; diff --git a/test/regression/ux_device_class_dummy.h b/test/regression/ux_device_class_dummy.h index 924d49b4..79087d6c 100644 --- a/test/regression/ux_device_class_dummy.h +++ b/test/regression/ux_device_class_dummy.h @@ -48,6 +48,5 @@ UX_SLAVE_TRANSFER *_ux_device_class_dummy_get_transfer_request(UX_DEVICE_CLASS_D ULONG _ux_device_class_dummy_get_max_packet_size(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address); UINT _ux_device_class_dummy_transfer(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address, UCHAR *buffer, ULONG length, ULONG *actual_length); -UINT _ux_device_class_dummy_abort(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address); #endif diff --git a/test/regression/ux_test.h b/test/regression/ux_test.h index a496aa23..6fa632f2 100644 --- a/test/regression/ux_test.h +++ b/test/regression/ux_test.h @@ -426,7 +426,6 @@ VOID ux_test_turn_off_expedient(UCHAR *); VOID ux_test_turn_on_expedient(UCHAR *); UCHAR ux_test_is_expedient_on(); VOID ux_test_set_expedient(UCHAR); -ULONG ux_test_calc_total_memory_allocated(ULONG memory_alignment, ULONG memory_cache_flag, ULONG memory_size_requested); UCHAR ux_test_check_actions_empty(); UINT ux_test_wait_for_empty_actions(); UINT ux_test_get_num_actions_left();