From cbe484a56b185fd79b8dfa7e3ddb3a34edbadd49 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 4 Oct 2017 08:27:27 -0700 Subject: [PATCH] Remove unused macros --- font/src/ft/fc/pattern.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index 040fae8..5b5a80e 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),+) => { $(