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
|
- 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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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?
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue