From 7eccb9f573c67e917c353696463e5fd7f52dad17 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 12 Aug 2020 09:54:25 -0500 Subject: [PATCH] Clean up `println!` and comparison calls. --- src/backends/ns_speech_synthesizer.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/backends/ns_speech_synthesizer.rs b/src/backends/ns_speech_synthesizer.rs index 09999e0..d7be450 100644 --- a/src/backends/ns_speech_synthesizer.rs +++ b/src/backends/ns_speech_synthesizer.rs @@ -51,16 +51,10 @@ impl Backend for NSSpeechSynthesizerBackend { } fn speak(&mut self, text: &str, interrupt: bool) -> Result<(), Error> { - println!("speak({}, {})", text, interrupt); + trace!("speak({}, {})", text, interrupt); let str = unsafe { NSString::alloc(nil).init_str(text) }; - let success: BOOL = unsafe { msg_send![self.0, startSpeakingString: str] }; - println!("Comparing"); - if success == NO { - println!("Failed"); - Ok(()) - } else { - Ok(()) - } + let _: BOOL = unsafe { msg_send![self.0, startSpeakingString: str] }; + Ok(()) } fn stop(&mut self) -> Result<(), Error> {