Skip to content

Commit

Permalink
Revert "only provide reference to edge weight"
Browse files Browse the repository at this point in the history
This reverts commit 29586b3.
  • Loading branch information
Smona committed Feb 26, 2024
1 parent 6272fce commit e26d188
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dasp_graph/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub trait Node<W = ()> {
pub struct Input<W = ()> {
buffers_ptr: *const Buffer,
buffers_len: usize,
edge_weight: W,
pub edge_weight: W,
}

impl<W> Input<W> {
Expand All @@ -116,11 +116,6 @@ impl<W> Input<W> {
// alive.
unsafe { std::slice::from_raw_parts(self.buffers_ptr, self.buffers_len) }
}

/// A reference to the input's edge weight.
pub fn edge_weight(&self) -> &W {
&self.edge_weight
}
}

// Inputs can only be created by the `dasp_graph::process` implementation and only ever live as
Expand Down

0 comments on commit e26d188

Please sign in to comment.