diff options
author | Jack O'Connor <oconnor663@gmail.com> | 2017-08-07 11:16:54 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-08-08 08:55:04 -0500 |
commit | 11af896734354257a5491f67789fc59182e0c6b1 (patch) | |
tree | b5cb515519cf63bfeabadffaaf9f0697056886a4 | |
parent | 702df40da4ea8585ddfa129cd240c54bab6e42d7 (diff) | |
download | alacritty-11af896734354257a5491f67789fc59182e0c6b1.tar.gz alacritty-11af896734354257a5491f67789fc59182e0c6b1.zip |
remove unused macros
This silences a couple of compiler warnings in the build.
-rw-r--r-- | font/src/ft/list_fonts.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/font/src/ft/list_fonts.rs b/font/src/ft/list_fonts.rs index 7fdf6250..18cc5007 100644 --- a/font/src/ft/list_fonts.rs +++ b/font/src/ft/list_fonts.rs @@ -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 { pub fn new() -> Pattern { 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 { ($($method:ident() => $property:expr),+) => { $( |