From 353e29aedd2227a1a3a6811df1d73606f63a687e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 1 Oct 2020 22:20:48 -0400 Subject: [PATCH] Drop the now-unused usizeslice bindings struct --- lightning-c-bindings/src/c_types/mod.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lightning-c-bindings/src/c_types/mod.rs b/lightning-c-bindings/src/c_types/mod.rs index 4fc325f08..813e401b8 100644 --- a/lightning-c-bindings/src/c_types/mod.rs +++ b/lightning-c-bindings/src/c_types/mod.rs @@ -173,24 +173,6 @@ impl u8slice { } } -#[repr(C)] -pub struct usizeslice { - pub data: *const usize, - pub datalen: usize -} -impl usizeslice { - pub(crate) fn from_slice(s: &[usize]) -> Self { - Self { - data: s.as_ptr(), - datalen: s.len(), - } - } - pub(crate) fn to_slice(&self) -> &[usize] { - if self.datalen == 0 { return &[]; } - unsafe { std::slice::from_raw_parts(self.data, self.datalen) } - } -} - #[repr(C)] #[derive(Copy, Clone)] /// Arbitrary 32 bytes, which could represent one of a few different things. You probably want to -- 2.39.5