Skip to content

Commit 9f1bf03

Browse files
committed
delete more code
1 parent f5052ba commit 9f1bf03

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/hb/face.rs

+1-22
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ pub struct hb_font_t<'a> {
2121
pub(crate) points_per_em: Option<f32>,
2222
}
2323

24-
impl<'a> AsRef<ttf_parser::Face<'a>> for hb_font_t<'a> {
25-
#[inline]
26-
fn as_ref(&self) -> &ttf_parser::Face<'a> {
27-
&self.ttfp_face
28-
}
29-
}
30-
31-
impl<'a> AsMut<ttf_parser::Face<'a>> for hb_font_t<'a> {
32-
#[inline]
33-
fn as_mut(&mut self) -> &mut ttf_parser::Face<'a> {
34-
&mut self.ttfp_face
35-
}
36-
}
37-
3824
impl<'a> core::ops::Deref for hb_font_t<'a> {
3925
type Target = ttf_parser::Face<'a>;
4026

@@ -44,13 +30,6 @@ impl<'a> core::ops::Deref for hb_font_t<'a> {
4430
}
4531
}
4632

47-
impl<'a> core::ops::DerefMut for hb_font_t<'a> {
48-
#[inline]
49-
fn deref_mut(&mut self) -> &mut Self::Target {
50-
&mut self.ttfp_face
51-
}
52-
}
53-
5433
impl<'a> hb_font_t<'a> {
5534
/// Creates a new `Face` from data.
5635
///
@@ -102,7 +81,7 @@ impl<'a> hb_font_t<'a> {
10281
/// Sets font variations.
10382
pub fn set_variations(&mut self, variations: &[Variation]) {
10483
for variation in variations {
105-
self.set_variation(variation.tag, variation.value);
84+
self.ttfp_face.set_variation(variation.tag, variation.value);
10685
}
10786
self.font.set_coords(self.ttfp_face.variation_coordinates());
10887
}

0 commit comments

Comments
 (0)