Skip to content

Commit 61a9441

Browse files
committed
Remove Grid::pid_basis_mut
1 parent 619e030 commit 61a9441

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pineappl/src/grid.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ impl Grid {
217217
&self.pid_basis
218218
}
219219

220-
/// Set the convention by which PIDs of channels are interpreted.
221-
pub fn pid_basis_mut(&mut self) -> &mut PidBasis {
222-
&mut self.pid_basis
223-
}
224-
225220
/// Return a vector containing the interpolation specifications for this grid.
226221
#[must_use]
227222
pub fn interpolations(&self) -> &[Interp] {
@@ -1485,7 +1480,7 @@ impl Grid {
14851480
for channel in &mut self.channels {
14861481
*channel = self_pid_basis.translate(pid_basis, channel.clone());
14871482
}
1488-
*self.pid_basis_mut() = pid_basis;
1483+
self.pid_basis = pid_basis;
14891484
}
14901485

14911486
/// Deletes channels with the corresponding `channel_indices`. Repeated indices and indices

0 commit comments

Comments
 (0)