Remove unused macros
This commit is contained in:
parent
6c74c51cef
commit
cbe484a56b
|
@ -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),+) => {
|
||||
$(
|
||||
|
|
Loading…
Reference in New Issue