TSC.Processの実装内部のdeprecated警告を潰す (#462)

seal deprecated tsc api
This commit is contained in:
omochimetaru 2024-05-20 23:53:57 +09:00 committed by GitHub
parent 6f4c5302f8
commit 3ec3d2ce66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -270,8 +270,7 @@ public final class Process {
private static let loggingHandlerLock = NSLock()
/// Global logging handler. Use with care! preferably use instance level instead of setting one globally.
@available(*, deprecated, message: "use instance level `loggingHandler` passed via `init` instead of setting one globally.")
public static var loggingHandler: LoggingHandler? {
private static var loggingHandler: LoggingHandler? {
get {
Self.loggingHandlerLock.withLock {
self._loggingHandler
@ -295,8 +294,7 @@ public final class Process {
public let arguments: [String]
/// The environment with which the process was executed.
@available(*, deprecated, message: "use `environmentBlock` instead")
public var environment: [String:String] {
private var environment: [String:String] {
Dictionary<String, String>(uniqueKeysWithValues: environmentBlock.map { ($0.key.value, $0.value) })
}