Remove unused imports

This commit is contained in:
Nindi Gill 2022-12-23 15:32:24 +11:00
parent e4dfabd9f4
commit 66aa4a463c
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
20 changed files with 7 additions and 33 deletions

View file

@ -17,6 +17,11 @@ missing_docs:
- public - public
- open - open
analyzer_rules:
- capture_variable
- unused_declaration
- unused_import
opt_in_rules: opt_in_rules:
- attributes - attributes
- balanced_xctest_lifecycle - balanced_xctest_lifecycle
@ -71,8 +76,6 @@ opt_in_rules:
- trailing_closure - trailing_closure
- type_contents_order - type_contents_order
- unneeded_parentheses_in_closure_argument - unneeded_parentheses_in_closure_argument
- unused_declaration
- unused_import
- vertical_parameter_alignment_on_call - vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces - vertical_whitespace_closing_braces
- yoda_condition - yoda_condition

View file

@ -5,7 +5,7 @@
// Created by Nindi Gill on 16/6/2022. // Created by Nindi Gill on 16/6/2022.
// //
import Cocoa import AppKit
import UserNotifications import UserNotifications
class AppDelegate: NSObject, NSApplicationDelegate { class AppDelegate: NSObject, NSApplicationDelegate {

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 20/6/2022. // Created by Nindi Gill on 20/6/2022.
// //
import Foundation
extension Array where Element == UInt8 { extension Array where Element == UInt8 {
func uInt8(at offset: Int) -> UInt8 { func uInt8(at offset: Int) -> UInt8 {

View file

@ -5,7 +5,6 @@
// Created by Nindi Gill on 29/6/2022. // Created by Nindi Gill on 29/6/2022.
// //
import Foundation
import SecureXPC import SecureXPC
/// Helper struct to kill the child process of the Privileted Helper Tool. /// Helper struct to kill the child process of the Privileted Helper Tool.

View file

@ -5,7 +5,6 @@
// Created by Nindi Gill on 13/6/2022. // Created by Nindi Gill on 13/6/2022.
// //
import Sparkle
import SwiftUI import SwiftUI
@main @main

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 8/12/2022. // Created by Nindi Gill on 8/12/2022.
// //
import Foundation
enum CatalogSeedType: String { enum CatalogSeedType: String {
case standard = "Standard" case standard = "Standard"
case customer = "Customer" case customer = "Customer"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 13/6/2022. // Created by Nindi Gill on 13/6/2022.
// //
import Foundation
enum CatalogType: String, CaseIterable, Comparable, Decodable { enum CatalogType: String, CaseIterable, Comparable, Decodable {
case ventura = "macOS Ventura" case ventura = "macOS Ventura"
case monterey = "macOS Monterey" case monterey = "macOS Monterey"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 14/7/2022. // Created by Nindi Gill on 14/7/2022.
// //
import Foundation
enum DownloadAlertType: String { enum DownloadAlertType: String {
case compatibility = "Compatiblity" case compatibility = "Compatiblity"
case helperTool = "Helper Tool" case helperTool = "Helper Tool"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 13/6/2022. // Created by Nindi Gill on 13/6/2022.
// //
import Foundation
enum DownloadType: String, CaseIterable, Identifiable { enum DownloadType: String, CaseIterable, Identifiable {
case firmware = "Firmware" case firmware = "Firmware"
case installer = "Installer" case installer = "Installer"

View file

@ -5,7 +5,6 @@
// Created by Nindi Gill on 13/6/2022. // Created by Nindi Gill on 13/6/2022.
// //
import Foundation
import UniformTypeIdentifiers import UniformTypeIdentifiers
enum ExportListType: String, CaseIterable, Identifiable { enum ExportListType: String, CaseIterable, Identifiable {

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 17/6/2022. // Created by Nindi Gill on 17/6/2022.
// //
import Foundation
enum InstallerExportType: String, CaseIterable, Identifiable { enum InstallerExportType: String, CaseIterable, Identifiable {
case application = "Application" case application = "Application"
case diskImage = "Disk Image" case diskImage = "Disk Image"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 25/6/2022. // Created by Nindi Gill on 25/6/2022.
// //
import Foundation
enum MistTaskSection: String, CaseIterable, Identifiable { enum MistTaskSection: String, CaseIterable, Identifiable {
case download = "Download" case download = "Download"
case setup = "Setup" case setup = "Setup"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 17/6/2022. // Created by Nindi Gill on 17/6/2022.
// //
import Foundation
enum MistTaskType: String { enum MistTaskType: String {
case download = "Download" case download = "Download"
case verify = "Verify" case verify = "Verify"

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 27/6/2022. // Created by Nindi Gill on 27/6/2022.
// //
import Foundation
enum ProgressAlertType: String { enum ProgressAlertType: String {
case cancel = "Cancel" case cancel = "Cancel"
case error = "Error" case error = "Error"

View file

@ -5,7 +5,6 @@
// Created by Nindi Gill on 23/6/2022. // Created by Nindi Gill on 23/6/2022.
// //
import Foundation
import SwiftUI import SwiftUI
enum RefreshState: String, CaseIterable, Identifiable { enum RefreshState: String, CaseIterable, Identifiable {

View file

@ -5,7 +5,7 @@
// Created by Nindi Gill on 23/6/2022. // Created by Nindi Gill on 23/6/2022.
// //
import Cocoa import AppKit
import UserNotifications import UserNotifications
class UserNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { class UserNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate {

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 21/6/2022. // Created by Nindi Gill on 21/6/2022.
// //
import Foundation
struct HelperToolCommandRequest: Codable { struct HelperToolCommandRequest: Codable {
let type: HelperToolCommandType let type: HelperToolCommandType
let arguments: [String] let arguments: [String]

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 21/6/2022. // Created by Nindi Gill on 21/6/2022.
// //
import Foundation
struct HelperToolCommandResponse: Codable { struct HelperToolCommandResponse: Codable {
let terminationStatus: Int32 let terminationStatus: Int32
let standardOutput: String? let standardOutput: String?

View file

@ -5,8 +5,6 @@
// Created by Nindi Gill on 21/6/2022. // Created by Nindi Gill on 21/6/2022.
// //
import Foundation
enum HelperToolCommandType: String, Codable { enum HelperToolCommandType: String, Codable {
// swiftlint:disable:next redundant_string_enum_value // swiftlint:disable:next redundant_string_enum_value
case remove = "remove" case remove = "remove"

View file

@ -5,7 +5,6 @@
// Created by Nindi Gill on 21/6/2022. // Created by Nindi Gill on 21/6/2022.
// //
import Foundation
import SecureXPC import SecureXPC
extension XPCRoute { extension XPCRoute {