Skip to content

Commit

Permalink
removed ManagedResultArgLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Dec 11, 2024
1 parent eedd7f2 commit 806aa3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 56 deletions.
2 changes: 0 additions & 2 deletions framework/base/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod arg_nested_tuple;
mod bytes_arg_loader;
pub mod call_value_init;
mod finish;
mod managed_result_arg_loader;
mod signal_error;

pub use arg_de_input::*;
Expand All @@ -18,5 +17,4 @@ use arg_loader_single::*;
pub use arg_nested_tuple::*;
pub use bytes_arg_loader::*;
pub use finish::*;
pub use managed_result_arg_loader::*;
pub use signal_error::*;
52 changes: 0 additions & 52 deletions framework/base/src/io/managed_result_arg_loader.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,19 @@ where
M: ManagedTypeApi,
T: ManagedVecItem,
{
pub(crate) fn new(managed_vec: &'a ManagedVec<M, T>) -> Self {
pub(crate) unsafe fn new_from_handle(vec_handle: M::ManagedBufferHandle) -> Self {
unsafe {
ManagedVecRefIterator {
payload_iter: ManagedVecPayloadIterator::new(managed_vec.get_handle()),
payload_iter: ManagedVecPayloadIterator::new(vec_handle),
_phantom: PhantomData,
}
}
}

pub(crate) fn new(managed_vec: &'a ManagedVec<M, T>) -> Self {
unsafe { ManagedVecRefIterator::new_from_handle(managed_vec.get_handle()) }
}

pub(crate) fn iter_is_empty(&self) -> bool {
self.payload_iter.iter_is_empty()
}
Expand Down

0 comments on commit 806aa3f

Please sign in to comment.