From b9ecdb72bb55792a8fa5a0bace8cdad498fee9b0 Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Fri, 13 Jan 2023 12:21:29 -0600 Subject: [PATCH] usb: remove msos dead code --- embassy-usb/src/msos.rs | 13 ------------- 1 file changed, 13 deletions(-) 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..] }