Skip to content

Commit 5f73715

Browse files
committed
chore: remove accidental template code
1 parent 2af6ab7 commit 5f73715

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

yggdrasilffi/src/flat/serialisation.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,6 @@ pub struct ResponseMessage<T> {
3232
pub impression_data: bool,
3333
}
3434

35-
impl<TInput> FlatMessage<TInput> for SomeType
36-
where
37-
Self: Follow<'static> + Sized,
38-
{
39-
fn build_response(input: TInput) -> Buf {
40-
let bytes: Vec<u8> = BUILDER.with(|cell| {
41-
let mut builder = cell.borrow_mut();
42-
builder.reset();
43-
let off = Self::as_flat_buffer(&mut builder, input);
44-
builder.finish(off, None);
45-
builder.finished_data().to_vec()
46-
});
47-
let mut v = bytes;
48-
let buf = Buf {
49-
ptr: v.as_mut_ptr(),
50-
len: v.len(),
51-
cap: v.capacity(),
52-
};
53-
std::mem::forget(v);
54-
buf
55-
}
56-
}
57-
5835
#[repr(C)]
5936
pub struct Buf {
6037
pub ptr: *mut u8, // points to heap memory owned by Rust

0 commit comments

Comments
 (0)