mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-17 08:35:08 -04:00
Remove unused imports
This commit is contained in:
parent
e4dfabd9f4
commit
66aa4a463c
20 changed files with 7 additions and 33 deletions
|
@ -17,6 +17,11 @@ missing_docs:
|
|||
- public
|
||||
- open
|
||||
|
||||
analyzer_rules:
|
||||
- capture_variable
|
||||
- unused_declaration
|
||||
- unused_import
|
||||
|
||||
opt_in_rules:
|
||||
- attributes
|
||||
- balanced_xctest_lifecycle
|
||||
|
@ -71,8 +76,6 @@ opt_in_rules:
|
|||
- trailing_closure
|
||||
- type_contents_order
|
||||
- unneeded_parentheses_in_closure_argument
|
||||
- unused_declaration
|
||||
- unused_import
|
||||
- vertical_parameter_alignment_on_call
|
||||
- vertical_whitespace_closing_braces
|
||||
- yoda_condition
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Created by Nindi Gill on 16/6/2022.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
import AppKit
|
||||
import UserNotifications
|
||||
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 20/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Array where Element == UInt8 {
|
||||
|
||||
func uInt8(at offset: Int) -> UInt8 {
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Nindi Gill on 29/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SecureXPC
|
||||
|
||||
/// Helper struct to kill the child process of the Privileted Helper Tool.
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Nindi Gill on 13/6/2022.
|
||||
//
|
||||
|
||||
import Sparkle
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 8/12/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum CatalogSeedType: String {
|
||||
case standard = "Standard"
|
||||
case customer = "Customer"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 13/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum CatalogType: String, CaseIterable, Comparable, Decodable {
|
||||
case ventura = "macOS Ventura"
|
||||
case monterey = "macOS Monterey"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 14/7/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum DownloadAlertType: String {
|
||||
case compatibility = "Compatiblity"
|
||||
case helperTool = "Helper Tool"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 13/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum DownloadType: String, CaseIterable, Identifiable {
|
||||
case firmware = "Firmware"
|
||||
case installer = "Installer"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Nindi Gill on 13/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
enum ExportListType: String, CaseIterable, Identifiable {
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 17/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum InstallerExportType: String, CaseIterable, Identifiable {
|
||||
case application = "Application"
|
||||
case diskImage = "Disk Image"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 25/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum MistTaskSection: String, CaseIterable, Identifiable {
|
||||
case download = "Download"
|
||||
case setup = "Setup"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 17/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum MistTaskType: String {
|
||||
case download = "Download"
|
||||
case verify = "Verify"
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 27/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum ProgressAlertType: String {
|
||||
case cancel = "Cancel"
|
||||
case error = "Error"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Nindi Gill on 23/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
enum RefreshState: String, CaseIterable, Identifiable {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Created by Nindi Gill on 23/6/2022.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
import AppKit
|
||||
import UserNotifications
|
||||
|
||||
class UserNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate {
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 21/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct HelperToolCommandRequest: Codable {
|
||||
let type: HelperToolCommandType
|
||||
let arguments: [String]
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 21/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct HelperToolCommandResponse: Codable {
|
||||
let terminationStatus: Int32
|
||||
let standardOutput: String?
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Nindi Gill on 21/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum HelperToolCommandType: String, Codable {
|
||||
// swiftlint:disable:next redundant_string_enum_value
|
||||
case remove = "remove"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Nindi Gill on 21/6/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SecureXPC
|
||||
|
||||
extension XPCRoute {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue