Skip to content

Commit 0fbb145

Browse files
authored
Removed unimplemented and stale API prototypes (#259)
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.
1 parent e2e81a8 commit 0fbb145

4 files changed

Lines changed: 0 additions & 12 deletions

File tree

common/core/inc/ux_api.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,6 @@ typedef struct UX_HOST_CLASS_DPUMP_STRUCT
27452745
#define ux_device_stack_transfer_run _ux_device_stack_transfer_run
27462746

27472747
#define ux_hcd_ehci_initialize _ux_hcd_ehci_initialize
2748-
#define ux_hcd_isp1161_initialize _ux_hcd_isp1161_initialize
27492748
#define ux_hcd_ohci_initialize _ux_hcd_ohci_initialize
27502749
#define ux_hcd_sim_host_initialize _ux_hcd_sim_host_initialize
27512750
#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
27692768
/* Define USBX Host API prototypes. */
27702769

27712770
UINT ux_hcd_ehci_initialize(UX_HCD *hcd);
2772-
UINT ux_hcd_isp1161_initialize(UX_HCD *hcd);
27732771
UINT ux_hcd_ohci_initialize(UX_HCD *hcd);
27742772
UINT ux_hcd_sim_host_initialize(UX_HCD *hcd);
27752773

@@ -2805,13 +2803,9 @@ UINT ux_host_stack_transfer_run(UX_TRANSFER *transfer_request);
28052803

28062804
/* Define USBX Device API prototypes. */
28072805

2808-
UINT ux_dcd_at91_initialize(ULONG dcd_io);
2809-
UINT ux_dcd_isp1181_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address);
2810-
UINT ux_dcd_ml6965_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address);
28112806
UINT ux_dcd_sim_slave_initialize(VOID);
28122807

28132808
UINT ux_device_class_storage_entry(UX_SLAVE_CLASS_COMMAND *command);
2814-
VOID ux_device_class_storage_thread(ULONG);
28152809
UINT ux_device_stack_alternate_setting_get(ULONG interface_value);
28162810
UINT ux_device_stack_alternate_setting_set(ULONG interface_value, ULONG alternate_setting_value);
28172811
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
28392833
ULONG alternate_setting_value);
28402834
UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *ux_interface);
28412835
UINT ux_device_stack_transfer_request(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length);
2842-
UINT ux_device_stack_transfer_request_abort(UX_SLAVE_TRANSFER *transfer_request, ULONG completion_code);
28432836
UINT ux_device_stack_microsoft_extension_register(ULONG vendor_request,
28442837
UINT (*vendor_request_function)(ULONG, ULONG, ULONG, ULONG, UCHAR *, ULONG *));
28452838

common/usbx_pictbridge/inc/ux_pictbridge.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,9 +963,6 @@ UINT _ux_pictbridge_object_tag_line_add(UCHAR *pima_object_buffer,
963963
UCHAR **pima_object_buffer_updated,
964964
ULONG *object_length_updated);
965965

966-
UINT _ux_pictbridge_input_object_create(UX_PICTBRIDGE *pictbridge, ULONG input_function);
967-
968-
969966

970967
/* Define external strings and xml tag lines. */
971968
extern UCHAR _ux_pictbridge_volume_description[];

test/regression/ux_device_class_dummy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@ UX_SLAVE_TRANSFER *_ux_device_class_dummy_get_transfer_request(UX_DEVICE_CLASS_D
4848
ULONG _ux_device_class_dummy_get_max_packet_size(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address);
4949

5050
UINT _ux_device_class_dummy_transfer(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address, UCHAR *buffer, ULONG length, ULONG *actual_length);
51-
UINT _ux_device_class_dummy_abort(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address);
5251

5352
#endif

test/regression/ux_test.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ VOID ux_test_turn_off_expedient(UCHAR *);
426426
VOID ux_test_turn_on_expedient(UCHAR *);
427427
UCHAR ux_test_is_expedient_on();
428428
VOID ux_test_set_expedient(UCHAR);
429-
ULONG ux_test_calc_total_memory_allocated(ULONG memory_alignment, ULONG memory_cache_flag, ULONG memory_size_requested);
430429
UCHAR ux_test_check_actions_empty();
431430
UINT ux_test_wait_for_empty_actions();
432431
UINT ux_test_get_num_actions_left();

0 commit comments

Comments
 (0)