Skip to content

Commit

Permalink
Remove unused v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheeter committed Sep 14, 2023
1 parent 24b1a79 commit 69e21ff
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions glyphs-reader/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,18 +1028,6 @@ impl RawFont {
Ok(())
}

fn v2_to_v3_anchors(&mut self) -> Result<(), Error> {
for glyph in self.glyphs.iter_mut() {
if let Some(Plist::String(group)) = glyph.other_stuff.remove("leftKerningGroup") {
glyph.kern_left = Some(group);
}
if let Some(Plist::String(group)) = glyph.other_stuff.remove("rightKerningGroup") {
glyph.kern_right = Some(group);
}
}
Ok(())
}

/// `<See https://github.com/schriftgestalt/GlyphsSDK/blob/Glyphs3/GlyphsFileFormat/GlyphsFileFormatv3.md#differences-between-version-2>`
fn v2_to_v3(&mut self) -> Result<(), Error> {
self.v2_to_v3_weight()?;
Expand All @@ -1048,7 +1036,6 @@ impl RawFont {
self.v2_to_v3_names()?;
self.v2_to_v3_instances()?;
self.v2_to_v3_kerning()?;
self.v2_to_v3_anchors()?;
Ok(())
}
}
Expand Down

0 comments on commit 69e21ff

Please sign in to comment.