diff --git a/src/font/fcwrap.rs b/src/font/fcwrap.rs index 464b13a6d..e9b22621c 100644 --- a/src/font/fcwrap.rs +++ b/src/font/fcwrap.rs @@ -197,15 +197,6 @@ impl Pattern { } } - pub fn parse(pattern: &str) -> Result { - let pattern = CString::new(pattern)?; - unsafe { - let p = FcNameParse(pattern.as_ptr() as *const u8); - ensure!(!p.is_null(), "failed to parse {:?}", pattern); - Ok(Pattern { pat: p }) - } - } - pub fn config_substitute(&mut self, match_kind: MatchKind) -> Result<(), Error> { unsafe { ensure!(