aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-10-04 08:27:27 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-08 22:20:58 -0700
commitcbe484a56b185fd79b8dfa7e3ddb3a34edbadd49 (patch)
treea35705104b70dd5f138e87eb9969d9667014bc3c
parent6c74c51ceff3ec1af0b3973e373aba6e315beffa (diff)
downloadalacritty-cbe484a56b185fd79b8dfa7e3ddb3a34edbadd49.tar.gz
alacritty-cbe484a56b185fd79b8dfa7e3ddb3a34edbadd49.zip
Remove unused macros
-rw-r--r--font/src/ft/fc/pattern.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs
index 040fae8f..5b5a80e7 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),+) => {
$(