Skip to content

Commit

Permalink
[normalizer] Fix an old TODO
Browse files Browse the repository at this point in the history
This impl was added some time back.
  • Loading branch information
cmyr committed Oct 3, 2024
1 parent 4d04b2a commit 3d74574
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions otl-normalizer/src/variations.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use write_fonts::read::{
tables::{
layout::VariationIndex,
variations::{DeltaSetIndex, ItemVariationStore},
},
tables::{layout::VariationIndex, variations::ItemVariationStore},
types::F2Dot14,
ReadError,
};
Expand Down Expand Up @@ -52,11 +49,7 @@ impl<'a> DeltaComputer<'a> {
coord: i32,
idx: VariationIndex,
) -> Result<Vec<i32>, ReadError> {
// TODO: this deserves an Into?
let delta_ix = DeltaSetIndex {
outer: idx.delta_set_outer_index(),
inner: idx.delta_set_inner_index(),
};
let delta_ix = idx.into();
self.locations
.iter()
.map(|loc| self.ivs.compute_delta(delta_ix, loc).map(|d| d + coord))
Expand Down

0 comments on commit 3d74574

Please sign in to comment.