Skip to content

Commit

Permalink
Remove iterator typedefs for USB descriptor types.
Browse files Browse the repository at this point in the history
C++11 range-based for loops make it a lot easier to iterate over an STL
container without incredibly long type names. The last users of these
typedefs have been updated and so they are no longer necessary.

BUG=

Review URL: https://codereview.chromium.org/869063004

Cr-Commit-Position: refs/heads/master@{#312949}
  • Loading branch information
reillyeon authored and Commit bot committed Jan 23, 2015
1 parent d86fc94 commit 61aa518
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions device/usb/usb_descriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ struct UsbEndpointDescriptor {
UsbEndpointDescriptor();
~UsbEndpointDescriptor();

typedef std::vector<UsbEndpointDescriptor>::const_iterator Iterator;

uint8_t address;
UsbEndpointDirection direction;
uint16_t maximum_packet_size;
Expand All @@ -55,8 +53,6 @@ struct UsbInterfaceDescriptor {
UsbInterfaceDescriptor();
~UsbInterfaceDescriptor();

typedef std::vector<UsbInterfaceDescriptor>::const_iterator Iterator;

uint8_t interface_number;
uint8_t alternate_setting;
uint8_t interface_class;
Expand Down

0 comments on commit 61aa518

Please sign in to comment.