diff --git a/mlx-nn/src/utils.rs b/mlx-nn/src/utils.rs index 521fab7f..0f4cd651 100644 --- a/mlx-nn/src/utils.rs +++ b/mlx-nn/src/utils.rs @@ -52,22 +52,3 @@ pub(crate) fn get_mut_or_insert_with<'a>( map.get_mut(key).unwrap() } - -/// A generic builder type for optional fields. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub struct Builder { - /// The inner value - pub inner: T, -} - -impl Builder { - /// Creates a new builder - pub fn new(inner: T) -> Self { - Self { inner } - } - - /// Builds the inner value - pub fn build(self) -> T { - self.inner - } -}