Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
unlessgames committed Jun 11, 2024
1 parent 391d456 commit dcca158
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/tidal/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,6 @@ impl Step {
}
}
}

// fn inner_steps_mut(&mut self) -> Vec<&mut Step> {
// match self {
// Step::Repeat => vec![],
// Step::Range(_) => vec![],
// Step::Single(_s) => vec![],
// Step::Alternating(a) => a.steps.iter_mut().collect(),
// Step::Polymeter(pm) => pm.steps.iter_mut().collect(),
// Step::Subdivision(sd) => sd.steps.iter_mut().collect(),
// Step::Choices(cs) => cs.choices.iter_mut().collect(),
// Step::Stack(st) => st.stack.iter_mut().collect(),
// Step::Expression(e) => vec![&mut e.left, &mut e.right],
// Step::SingleExpression(e) => vec![&mut e.left],
// Step::Bjorklund(b) => {
// if let Some(rotation) = &mut b.rotation {
// vec![&mut b.left, &mut b.steps, &mut b.pulses, &mut **rotation]
// } else {
// vec![&mut b.left, &mut b.steps, &mut b.pulses]
// }
// }
// }
// }
}

#[derive(Clone, Debug, Default, PartialEq)]
Expand Down Expand Up @@ -819,6 +797,7 @@ impl Events {
channels
}

#[allow(dead_code)] // TODO remove this once the "step * step" is done
fn print(&self) {
match self {
Events::Single(s) => println!("[{}] {}", s.length, s),
Expand Down

0 comments on commit dcca158

Please sign in to comment.