summaryrefslogtreecommitdiffstats
path: root/content/renderer/usb/web_usb_device_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/usb/web_usb_device_impl.cc')
-rw-r--r--content/renderer/usb/web_usb_device_impl.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/content/renderer/usb/web_usb_device_impl.cc b/content/renderer/usb/web_usb_device_impl.cc
index d0cedd5..fc6920d 100644
--- a/content/renderer/usb/web_usb_device_impl.cc
+++ b/content/renderer/usb/web_usb_device_impl.cc
@@ -26,7 +26,6 @@ const char kClaimInterfaceFailed[] = "Unable to claim interface.";
const char kClearHaltFailed[] = "Unable to clear endpoint.";
const char kDeviceAlreadyOpen[] = "Device has already been opened.";
const char kDeviceNoAccess[] = "Access denied.";
-const char kDeviceNotConfigured[] = "Device not configured.";
const char kDeviceUnavailable[] = "Device unavailable.";
const char kDeviceResetFailed[] = "Unable to reset the device.";
const char kReleaseInterfaceFailed[] = "Unable to release interface.";
@@ -90,19 +89,6 @@ void OnDeviceClosed(
callbacks.PassCallbacks()->onSuccess();
}
-void OnGetConfiguration(
- ScopedWebCallbacks<blink::WebUSBDeviceGetConfigurationCallbacks> callbacks,
- uint8_t configuration_value) {
- auto scoped_callbacks = callbacks.PassCallbacks();
- if (configuration_value == 0) {
- RejectWithError(blink::WebUSBError(blink::WebUSBError::Error::NotFound,
- kDeviceNotConfigured),
- std::move(scoped_callbacks));
- } else {
- scoped_callbacks->onSuccess(configuration_value);
- }
-}
-
void HandlePassFailDeviceOperation(
ScopedWebCallbacks<blink::WebCallbacks<void, const blink::WebUSBError&>>
callbacks,
@@ -258,14 +244,6 @@ void WebUSBDeviceImpl::close(blink::WebUSBDeviceCloseCallbacks* callbacks) {
base::Bind(&OnDeviceClosed, base::Passed(&scoped_callbacks)));
}
-void WebUSBDeviceImpl::getConfiguration(
- blink::WebUSBDeviceGetConfigurationCallbacks* callbacks) {
- auto scoped_callbacks = MakeScopedUSBCallbacks(callbacks);
- if (device_)
- device_->GetConfiguration(
- base::Bind(&OnGetConfiguration, base::Passed(&scoped_callbacks)));
-}
-
void WebUSBDeviceImpl::setConfiguration(
uint8_t configuration_value,
blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) {