From 40e28876b2cad55ea84b00ad6ce87df94ec0437f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 9 May 2022 08:46:46 -0500 Subject: [PATCH] Remove unnecessary printlns and link directives. --- src/backends/appkit.rs | 1 - src/backends/av_foundation.rs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/backends/appkit.rs b/src/backends/appkit.rs index e9beb67..2918c09 100644 --- a/src/backends/appkit.rs +++ b/src/backends/appkit.rs @@ -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}; diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 2b1184a..6f0f1e0 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -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 { 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);