Skip to content

Commit

Permalink
Delete unused files and commented-out code blocks (#68)
Browse files Browse the repository at this point in the history
* Delete unused file `utf32_string.rs`

* Delete unused file `matcher.rs`

* Delete unused commented-out code block
  • Loading branch information
alexrutar authored Dec 15, 2024
1 parent c36c355 commit 9918bdd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 213 deletions.
18 changes: 0 additions & 18 deletions matcher/src/debug.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
use crate::matrix::{MatrixCell, ScoreCell};
use std::fmt::{Debug, Formatter, Result};

// impl<C: Char> MatcherData<'_, C> {
// pub fn rows(&self) -> impl Iterator<Item = MatrixRow> + ExactSizeIterator + Clone + Sized {
// let mut cells = &*self.cells;
// self.row_offs.iter().map(move |&off| {
// let len = self.haystack.len() - off as usize;
// let (row, tmp) = cells.split_at(len);
// cells = tmp;
// MatrixRow { off, cells: row }
// })
// }

// pub fn haystack(
// &self,
// ) -> impl Iterator<Item = HaystackChar<C>> + ExactSizeIterator + '_ + Clone {
// haystack(self.haystack, self.bonus, 0)
// }
// }

impl Debug for ScoreCell {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "({}, {})", self.score, self.matched)
Expand Down
1 change: 0 additions & 1 deletion src/matcher.rs

This file was deleted.

194 changes: 0 additions & 194 deletions src/utf32_string.rs

This file was deleted.

0 comments on commit 9918bdd

Please sign in to comment.