mirror of
https://github.com/alacritty/alacritty.git
synced 2025-02-10 15:46:10 -05:00
remove unused macros
This silences a couple of compiler warnings in the build.
This commit is contained in:
parent
702df40da4
commit
11af896734
1 changed files with 0 additions and 30 deletions
|
@ -210,19 +210,6 @@ pub mod fc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
impl Pattern {
|
||||||
pub fn new() -> Pattern {
|
pub fn new() -> Pattern {
|
||||||
Pattern(unsafe { FcPatternCreate() })
|
Pattern(unsafe { FcPatternCreate() })
|
||||||
|
@ -260,23 +247,6 @@ pub mod fc {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
macro_rules! pattern_get_integer {
|
||||||
($($method:ident() => $property:expr),+) => {
|
($($method:ident() => $property:expr),+) => {
|
||||||
$(
|
$(
|
||||||
|
|
Loading…
Add table
Reference in a new issue