Remove unused furi_hal_usb_get_config_context()

This commit is contained in:
Willy-JL
2024-06-17 02:13:16 +02:00
parent 3923245d91
commit be44e46388
3 changed files with 0 additions and 26 deletions

View File

@@ -17,7 +17,6 @@
typedef enum {
UsbApiEventTypeSetConfig,
UsbApiEventTypeGetConfig,
UsbApiEventTypeGetConfigContext,
UsbApiEventTypeLock,
UsbApiEventTypeUnlock,
UsbApiEventTypeIsLocked,
@@ -168,21 +167,6 @@ FuriHalUsbInterface* furi_hal_usb_get_config(void) {
return return_data.void_value;
}
void* furi_hal_usb_get_config_context(void) {
UsbApiEventReturnData return_data = {
.void_value = NULL,
};
UsbApiEventMessage msg = {
.lock = api_lock_alloc_locked(),
.type = UsbApiEventTypeGetConfigContext,
.return_data = &return_data,
};
furi_hal_usb_send_message(&msg);
return return_data.void_value;
}
void furi_hal_usb_lock(void) {
UsbApiEventMessage msg = {
.lock = api_lock_alloc_locked(),
@@ -426,9 +410,6 @@ static void usb_process_message(UsbApiEventMessage* message) {
case UsbApiEventTypeGetConfig:
message->return_data->void_value = usb.interface;
break;
case UsbApiEventTypeGetConfigContext:
message->return_data->void_value = usb.interface_context;
break;
case UsbApiEventTypeLock:
FURI_LOG_I(TAG, "Mode lock");
usb.mode_lock = true;