From 6793a91e037815c4cc8554174f6c22b9e686b833 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:11:58 -0400 Subject: [PATCH] Remove unnecessary explicit inits. Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Commands/Account.swift | 2 -- Sources/mas/Commands/Reset.swift | 2 -- Sources/mas/Commands/SignIn.swift | 2 -- Sources/mas/Commands/SignOut.swift | 2 -- Sources/mas/Commands/Version.swift | 2 -- Tests/masTests/ExternalCommands/OpenSystemCommandMock.swift | 2 -- 6 files changed, 12 deletions(-) diff --git a/Sources/mas/Commands/Account.swift b/Sources/mas/Commands/Account.swift index 6e58cb2..55d9c5a 100644 --- a/Sources/mas/Commands/Account.swift +++ b/Sources/mas/Commands/Account.swift @@ -14,8 +14,6 @@ public struct AccountCommand: CommandProtocol { public let verb = "account" public let function = "Prints the primary account Apple ID" - public init() {} - /// Runs the command. public func run(_: Options) -> Result { if #available(macOS 12, *) { diff --git a/Sources/mas/Commands/Reset.swift b/Sources/mas/Commands/Reset.swift index cefcaf2..212549d 100644 --- a/Sources/mas/Commands/Reset.swift +++ b/Sources/mas/Commands/Reset.swift @@ -15,8 +15,6 @@ public struct ResetCommand: CommandProtocol { public let verb = "reset" public let function = "Resets the Mac App Store" - public init() {} - /// Runs the command. public func run(_ options: Options) -> Result { // The "Reset Application" command in the Mac App Store debug menu performs diff --git a/Sources/mas/Commands/SignIn.swift b/Sources/mas/Commands/SignIn.swift index 8ed6d1c..3720806 100644 --- a/Sources/mas/Commands/SignIn.swift +++ b/Sources/mas/Commands/SignIn.swift @@ -15,8 +15,6 @@ public struct SignInCommand: CommandProtocol { public let verb = "signin" public let function = "Sign in to the Mac App Store" - public init() {} - /// Runs the command. public func run(_ options: Options) -> Result { do { diff --git a/Sources/mas/Commands/SignOut.swift b/Sources/mas/Commands/SignOut.swift index 65e213a..711f06f 100644 --- a/Sources/mas/Commands/SignOut.swift +++ b/Sources/mas/Commands/SignOut.swift @@ -14,8 +14,6 @@ public struct SignOutCommand: CommandProtocol { public let verb = "signout" public let function = "Sign out of the Mac App Store" - public init() {} - /// Runs the command. public func run(_: Options) -> Result { if #available(macOS 10.13, *) { diff --git a/Sources/mas/Commands/Version.swift b/Sources/mas/Commands/Version.swift index 1d2d580..f5957a3 100644 --- a/Sources/mas/Commands/Version.swift +++ b/Sources/mas/Commands/Version.swift @@ -14,8 +14,6 @@ public struct VersionCommand: CommandProtocol { public let verb = "version" public let function = "Print version number" - public init() {} - /// Runs the command. public func run(_: Options) -> Result { print(Package.version) diff --git a/Tests/masTests/ExternalCommands/OpenSystemCommandMock.swift b/Tests/masTests/ExternalCommands/OpenSystemCommandMock.swift index 7d9aebc..95c409b 100644 --- a/Tests/masTests/ExternalCommands/OpenSystemCommandMock.swift +++ b/Tests/masTests/ExternalCommands/OpenSystemCommandMock.swift @@ -21,8 +21,6 @@ class OpenSystemCommandMock: ExternalCommand { var stdoutPipe = Pipe() var stderrPipe = Pipe() - init() {} - func run(arguments: String...) throws { self.arguments = arguments }