diff --git a/embassy-usb/src/msos.rs b/embassy-usb/src/msos.rs index 8a2889ce..df846125 100644 --- a/embassy-usb/src/msos.rs +++ b/embassy-usb/src/msos.rs @@ -2,8 +2,6 @@ //! //! -#![allow(dead_code)] - use core::mem::size_of; use core::ops::Range; @@ -91,17 +89,6 @@ impl<'a> DescriptorSetBuilder<'a> { self.used += size; } - pub fn subset(&mut self, build_subset: impl FnOnce(&mut DescriptorSetBuilder<'_>)) { - self.used += { - let mut subset = DescriptorSetBuilder { - used: 0, - buf: self.remaining(), - }; - build_subset(&mut subset); - subset.used - }; - } - pub fn remaining(&mut self) -> &mut [u8] { &mut self.buf[self.used..] }