From 552430f892fb618067388896c0e4e6d4ae0687a7 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Mon, 18 Sep 2023 02:58:18 +0900 Subject: [PATCH] Remove unused code. --- HaishinKit.xcodeproj/project.pbxproj | 4 ++-- Sources/Media/IOMixer.swift | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/HaishinKit.xcodeproj/project.pbxproj b/HaishinKit.xcodeproj/project.pbxproj index af4e31c5d..b5d6c97fe 100644 --- a/HaishinKit.xcodeproj/project.pbxproj +++ b/HaishinKit.xcodeproj/project.pbxproj @@ -2473,7 +2473,7 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 11.0; + TVOS_DEPLOYMENT_TARGET = 12.0; }; name = Debug; }; @@ -2502,7 +2502,7 @@ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 11.0; + TVOS_DEPLOYMENT_TARGET = 12.0; }; name = Release; }; diff --git a/Sources/Media/IOMixer.swift b/Sources/Media/IOMixer.swift index e4e666707..ca765dca5 100644 --- a/Sources/Media/IOMixer.swift +++ b/Sources/Media/IOMixer.swift @@ -76,8 +76,6 @@ public class IOMixer { }() #if os(iOS) || os(macOS) - var isMultitaskingCameraAccessEnabled = true - var isMultiCamSessionEnabled = false { didSet { guard oldValue != isMultiCamSessionEnabled else { @@ -232,7 +230,7 @@ public class IOMixer { if session.canSetSessionPreset(sessionPreset) { session.sessionPreset = sessionPreset } - if isMultitaskingCameraAccessEnabled && session.isMultitaskingCameraAccessSupported { + if session.isMultitaskingCameraAccessSupported { session.isMultitaskingCameraAccessEnabled = true } return session