diff options
author | Joe Wilm <joe@jwilm.com> | 2017-01-23 08:50:24 -0800 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-23 09:14:01 -0800 |
commit | e118431d16d64543f5c2904af109ae9ba7e2965f (patch) | |
tree | 00048e1dd12896adad8e0345b27d9e6a17264026 | |
parent | ee37dc86abb3257458d5832e4448ded8a0d2b0a7 (diff) | |
download | alacritty-e118431d16d64543f5c2904af109ae9ba7e2965f.tar.gz alacritty-e118431d16d64543f5c2904af109ae9ba7e2965f.zip |
Remove debug_print! macros
The logging macros should be used instead.
-rw-r--r-- | src/macros.rs | 18 | ||||
-rw-r--r-- | src/term/mod.rs | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/src/macros.rs b/src/macros.rs index c96e6d64..00a9b529 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -41,24 +41,6 @@ macro_rules! err_print { } #[macro_export] -macro_rules! debug_println { - ($($t:tt)*) => { - if cfg!(debug_assertions) { - err_println!($($t)*); - } - } -} - -#[macro_export] -macro_rules! debug_print { - ($($t:tt)*) => { - if cfg!(debug_assertions) { - err_print!($($t)*); - } - } -} - -#[macro_export] macro_rules! maybe { ($option:expr) => { match $option { diff --git a/src/term/mod.rs b/src/term/mod.rs index 23d392e3..9d443723 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1194,13 +1194,13 @@ impl ansi::Handler for Term { #[inline] fn configure_charset(&mut self, index: CharsetIndex, charset: StandardCharset) { - debug_println!("designate {:?} character set as {:?}", index, charset); + trace!("designate {:?} character set as {:?}", index, charset); self.charsets[index] = charset; } #[inline] fn set_active_charset(&mut self, index: CharsetIndex) { - debug_println!("Activate {:?} character set", index); + trace!("Activate {:?} character set", index); self.active_charset = index; } } |