Skip to content

Commit

Permalink
Remove unnecessary methods in webusb
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Dec 23, 2024
1 parent f6a6bea commit 2fe07ed
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions src/platform/webusb/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use web_sys::{js_sys::Uint8Array, UsbControlTransferParameters, UsbDevice, UsbIn

use crate::{
descriptors::{validate_config_descriptor, DESCRIPTOR_TYPE_CONFIGURATION},
transfer::{Control, EndpointType, TransferError, TransferHandle},
transfer::{Control, Direction, EndpointType, TransferError, TransferHandle},
DeviceInfo, Error,
};

Expand Down Expand Up @@ -67,39 +67,9 @@ impl WebusbDevice {
todo!()
}

/// SAFETY: `data` must be valid for `len` bytes to read or write, depending on `Direction`
// unsafe fn control_blocking(
// &self,
// _direction: Direction,
// _control: Control,
// _data: *mut u8,
// _len: usize,
// _timeout: Duration,
// ) -> Result<usize, TransferError> {
// todo!()
// }

// pub fn control_in_blocking(
// &self,
// _control: Control,
// _data: &mut [u8],
// _timeout: Duration,
// ) -> Result<usize, TransferError> {
// todo!()
// }

// pub fn control_out_blocking(
// &self,
// _control: Control,
// _data: &[u8],
// _timeout: Duration,
// ) -> Result<usize, TransferError> {
// todo!()
// }

// pub(crate) fn make_control_transfer(self: &Arc<Self>) -> TransferHandle<super::TransferData> {
// todo!()
// }
pub(crate) fn make_control_transfer(self: &Arc<Self>) -> TransferHandle<super::TransferData> {
todo!()
}

pub(crate) async fn claim_interface(
self: &Arc<Self>,
Expand Down

0 comments on commit 2fe07ed

Please sign in to comment.