Skip to content

Commit 9d62a60

Browse files
committed
Drop the now-unused usizeslice bindings struct
1 parent 346c148 commit 9d62a60

File tree

1 file changed

+0
-18
lines changed
  • lightning-c-bindings/src/c_types

1 file changed

+0
-18
lines changed

lightning-c-bindings/src/c_types/mod.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -173,24 +173,6 @@ impl u8slice {
173173
}
174174
}
175175

176-
#[repr(C)]
177-
pub struct usizeslice {
178-
pub data: *const usize,
179-
pub datalen: usize
180-
}
181-
impl usizeslice {
182-
pub(crate) fn from_slice(s: &[usize]) -> Self {
183-
Self {
184-
data: s.as_ptr(),
185-
datalen: s.len(),
186-
}
187-
}
188-
pub(crate) fn to_slice(&self) -> &[usize] {
189-
if self.datalen == 0 { return &[]; }
190-
unsafe { std::slice::from_raw_parts(self.data, self.datalen) }
191-
}
192-
}
193-
194176
#[repr(C)]
195177
#[derive(Copy, Clone)]
196178
/// Arbitrary 32 bytes, which could represent one of a few different things. You probably want to

0 commit comments

Comments
 (0)