Skip to content

Commit

Permalink
feat: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0enixKM committed Nov 20, 2024
1 parent ed40a34 commit e80a455
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/compiling/lexing/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ impl<'a> Reader<'a> {
(self.row, self.col)
}

/// Gets position of token that has been read
#[inline]
pub fn get_word_position(&self, word: &str) -> (usize, usize) {
(self.row, self.col - word.chars().count())
}

/// Workaround for UTF-8 symbols
#[inline]
fn get_slice(&self, begin: usize, end: usize) -> String {
Expand Down

0 comments on commit e80a455

Please sign in to comment.