diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index 040fae8f..5b5a80e7 100644 --- a/font/src/ft/fc/pattern.rs +++ b/font/src/ft/fc/pattern.rs @@ -342,42 +342,12 @@ macro_rules! pattern_string_accessors { } } -macro_rules! pattern_add_int { - ($($name:ident => $object:expr),*) => { - $( - #[inline] - pub fn $name(&mut self, value: &str) -> bool { - unsafe { - self.add_string($object, value) - } - } - )* - } -} - impl Pattern { pub fn new() -> Pattern { Pattern(unsafe { FcPatternCreate() }) } } -macro_rules! pattern_add_integer { - ($($method:ident() => $property:expr),+) => { - $( - pub fn $method(&self, int: isize) -> bool { - unsafe { - FcPatternAddInteger( - self.as_ptr(), - $property.as_ptr() as *mut c_char, - int as c_int, - &mut index - ) == 1 - } - } - )+ - }; -} - macro_rules! pattern_get_integer { ($($method:ident() => $property:expr),+) => { $(