Browse Source

Remove unnecessary printlns and link directives.

pull/11/merge
Nolan Darilek 3 weeks ago
parent
commit
40e28876b2
  1. 1
      src/backends/appkit.rs
  2. 7
      src/backends/av_foundation.rs

1
src/backends/appkit.rs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#[cfg(target_os = "macos")]
#[link(name = "AppKit", kind = "framework")]
use cocoa_foundation::base::{id, nil};
use cocoa_foundation::foundation::NSString;
use log::{info, trace};

7
src/backends/av_foundation.rs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#[cfg(any(target_os = "macos", target_os = "ios"))]
#[link(name = "AVFoundation", kind = "framework")]
use std::{str::FromStr, sync::Mutex};
use cocoa_foundation::base::{id, nil, NO};
@ -42,12 +41,6 @@ impl AvFoundation { @@ -42,12 +41,6 @@ impl AvFoundation {
utterance: id,
) {
trace!("speech_synthesizer_did_start_speech_utterance");
let vid: id = unsafe { msg_send![utterance, voice] };
if vid == nil {
println!("nil voice");
} else {
println!("Got voice ID");
}
unsafe {
let backend_id: u64 = *this.get_ivar("backend_id");
let backend_id = BackendId::AvFoundation(backend_id);

Loading…
Cancel
Save