Remove unused macros

This commit is contained in:
Joe Wilm 2017-10-04 08:27:27 -07:00 committed by Joe Wilm
parent 6c74c51cef
commit cbe484a56b
1 changed files with 0 additions and 30 deletions

View File

@ -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),+) => {
$(