Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jun 17, 2024
1 parent 0bd72ce commit b3ccb2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/hb/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,27 +642,6 @@ impl hb_buffer_t {
// TODO: language must be set
}

pub fn sync_so_far(&mut self) -> usize {
let had_output = self.have_output;
let out_i = self.out_len;
let i = self.idx;
let old_idx = self.idx;

if self.sync() {
self.idx = out_i;
} else {
self.idx = i;
}

if had_output {
self.have_output = true;
self.out_len = self.idx;
}

assert!(self.idx <= self.len);
self.idx - old_idx
}

pub fn sync(&mut self) -> bool {
assert!(self.have_output);
assert!(self.idx <= self.len);
Expand Down
2 changes: 0 additions & 2 deletions src/hb/ot_shaper_use_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ pub fn find_syllables(buffer: &mut hb_buffer_t) {
let mut p = p0;
let mut ts = p0;
let mut te = p0;
let mut act = p0;
let pe = p.end();
let eof = p.end();
let mut syllable_serial = 1u8;
Expand All @@ -289,7 +288,6 @@ pub fn find_syllables(buffer: &mut hb_buffer_t) {
cs = (use_syllable_machine_start) as i32;
ts = p0;
te = p0;
act = p0;
}

{
Expand Down

0 comments on commit b3ccb2f

Please sign in to comment.