Skip to content

Commit

Permalink
Revert "Make invalid timer states unrepresentable (LiveSplit#818)"
Browse files Browse the repository at this point in the history
This reverts commit 4ebb4bb.
  • Loading branch information
AlexKnauth committed Jun 23, 2024
1 parent 628d78a commit 931948b
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 458 deletions.
4 changes: 2 additions & 2 deletions src/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,10 @@ impl Run {
/// # Panics
///
/// This panics if there is no attempt in the Attempt History.
pub fn update_segment_history(&mut self, segments_count: usize) {
pub fn update_segment_history(&mut self, current_split_index: usize) {
let mut previous_split_time = Time::zero();

let segments = &mut self.segments[..segments_count];
let segments = self.segments.iter_mut().take(current_split_index);
let index = self
.attempt_history
.last()
Expand Down
229 changes: 0 additions & 229 deletions src/timing/timer/active_attempt.rs

This file was deleted.

Loading

0 comments on commit 931948b

Please sign in to comment.