Remove debug_print! macros
The logging macros should be used instead.
This commit is contained in:
parent
ee37dc86ab
commit
e118431d16
|
@ -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) => {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue