Remove debug_print! macros

The logging macros should be used instead.
This commit is contained in:
Joe Wilm 2017-01-23 08:50:24 -08:00 committed by Joe Wilm
parent ee37dc86ab
commit e118431d16
2 changed files with 2 additions and 20 deletions

View File

@ -40,24 +40,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) => {

View File

@ -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;
}
}