Skip to content

Commit

Permalink
Remove unneeded imports (tuist#7218)
Browse files Browse the repository at this point in the history
  • Loading branch information
pillboxer authored Jan 7, 2025
1 parent b4c7775 commit d2d4651
Show file tree
Hide file tree
Showing 288 changed files with 0 additions and 348 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import FileSystem
import Path
import TuistCore
@_exported import TuistKit
import XcodeGraph
import XcodeProj
import XCTest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import TuistCore

/// An analytics backend an entity (e.g. an HTTP server)
Expand Down
4 changes: 0 additions & 4 deletions Sources/TuistAnalytics/TuistAnalytics.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import Foundation
import Path
import TuistAsyncQueue
import TuistLoader
import XcodeGraph

public enum TuistAnalytics {
public static func bootstrap(dispatcher: TuistAnalyticsDispatcher) throws {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import Foundation
import TuistAsyncQueue
import TuistCore
import TuistSupport
import XcodeGraph

/// `TuistAnalyticsTagger` is responsible to send analytics events that gets stored and reported to the Tuist server (if defined)
public struct TuistAnalyticsDispatcher: AsyncQueueDispatching {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import TuistAsyncQueue
import TuistCore

public enum MockAsyncQueueDispatcherError: Error {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation
import Path
import ServiceContextModule
import TuistCore
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation
import Path
import ServiceContextModule
import TuistCore
import XcodeGraph
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistAutomation/Utilities/AppBundle.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TuistCore
import TuistSupport
Expand Down
3 changes: 0 additions & 3 deletions Sources/TuistAutomation/Utilities/AppRunner.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import FileSystem
import Foundation
import Mockable
import Path
import ServiceContextModule
import struct TSCUtility.Version
import TuistCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import FileSystem
import Foundation
import Mockable
import Path
import ServiceContextModule
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistAutomation/Utilities/Formatter.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation
import TuistCore
import TuistSupport
import XcbeautifyLib

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistAutomation/Utilities/TargetBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import FileSystem
import Path
import ServiceContextModule
import TSCUtility
import TuistCore
import TuistSupport
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Path
import TSCUtility
import TuistCore
import TuistSupport
import XcodeGraph

extension XcodeBuildDestination {
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCache/CacheGraphContentHasher.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Foundation
import Mockable
import Path
import TuistCore
import TuistHasher
import TuistSupport
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCache/CacheItem.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TuistCore

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCache/CacheVersionFetcher.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import XcodeGraph

protocol CacheVersionFetching {
func version() -> CacheVersion
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Analytics/CommandEventGraphTarget.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

/// A simplified `GraphTarget` to store in `CommandEvent`. As this model gets stored on disk, we want to minimize the information
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Analytics/CommandEventProject.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import XcodeGraph

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Analytics/CommandEventTarget.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

/// A simplified version of `Target` to store in `CommandEvent`.
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Automation/XcodeBuildArgument.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path

/// It represents arguments that can be passed to the xcodebuild command.
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Automation/XcodeBuildControlling.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Foundation
import Mockable
import Path
import TuistSupport

public enum XcodeBuildDestination: Equatable {
case device(String)
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Automation/XcodeBuildOutput.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

/// It represents an output from the xcodebuild command.
public struct XcodeBuildOutput: Equatable {
/// Output as xcodebuild returns it.
Expand Down
3 changes: 0 additions & 3 deletions Sources/TuistCore/Automation/XcodeBuildSettings.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import Foundation
import Path

public struct XcodeBuildSettings {
public typealias DictionaryType = [String: String]
private let settings: DictionaryType
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Automation/XcodeBuildTarget.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path

public enum XcodeBuildTarget: Equatable {
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Cache/CacheDirectoriesProvider.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import FileSystem
import Foundation
import Mockable
import Path
import TuistSupport
import XcodeGraph

@Mockable
public protocol CacheDirectoriesProviding {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Cache/FileContentHashing.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path

public protocol FileContentHashing {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/ContentHashing/ContentHashingError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TuistSupport

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/ContentHashing/HashingFilesFilter.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path

class HashingFilesFilter {
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Descriptors/CommandDescriptor.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

/// Command Descriptor
///
/// Describes a command that needs to be executed as part of
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Descriptors/DirectoryDescriptor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path

/// Directory Descriptor
Expand Down
3 changes: 0 additions & 3 deletions Sources/TuistCore/Descriptors/SideEffectDescriptor.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import Foundation
import Path

/// Side Effect Descriptor
///
/// Describes a side effect that needs to take place without performing it
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/CircularDependencyLinter.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import XcodeGraph

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/GraphCache.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import TuistSupport
import XcodeGraph

final class GraphCache<Key: Hashable, Value> {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/GraphCircularDetector.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TSCBasic

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/GraphDependencyReference.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import XcodeGraph

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/GraphLoader.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import XcodeGraph

Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Graph/Mappers/GraphMapper.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation
import Path
import XcodeGraph

/// A protocol that defines an interface to map dependency graphs.
Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCore/Graph/Mappers/MapperEnvironment.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

public protocol MapperEnvironmentKey<Value>: Hashable {
associatedtype Value
static var defaultValue: Self.Value { get }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import XcodeGraph

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/Mappers/ProjectMapper.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

public protocol ProjectMapping {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/Mappers/TargetMapper.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

public protocol TargetMapping {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/Mappers/WorkspaceMapper.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

public struct WorkspaceWithProjects: Equatable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation
import TuistSupport
import XcodeGraph

extension BuildConfiguration: XcodeRepresentable {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/ModelExtensions/Headers+core.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph
import XcodeProj

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/ModelExtensions/Product+Core.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph
import XcodeProj

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/ModelExtensions/Project+Core.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TuistSupport
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph
import XcodeProj

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/ModelExtensions/Scheme+Core.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import XcodeGraph

extension Scheme {
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Graph/ModelExtensions/Target+Core.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import FileSystem
import Foundation
import Path
import TuistSupport
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import Path
import TuistSupport
import XcodeGraph
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCore/Models/Plugin.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path

/// A `Plugin` used to extend Tuist.
public struct Plugin: Equatable, Hashable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Foundation
import Mockable
import Path
import TuistSupport
import XcodeGraph

@Mockable
public protocol XcodeProjectBuildDirectoryLocating {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import TuistSupportTesting
import XCTest
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCoreTesting/Graph/MockGraphLoader.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import XcodeGraph

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import XcodeGraph
@testable import TuistCore

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistCoreTesting/Mappers/MockProjectMapper.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import XcodeGraph
@testable import TuistCore

Expand Down
2 changes: 0 additions & 2 deletions Sources/TuistCoreTesting/Mappers/MockWorkspaceMapper.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Foundation
import Path
import XcodeGraph
@testable import TuistCore

public final class MockWorkspaceMapper: WorkspaceMapping {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import TuistSupport
import XcodeGraph
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistGenerator/Generator/DescriptorGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import TuistSupport
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import ServiceContextModule
import TuistCore
import TuistSupport
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistGenerator/Generator/ProjectGroups.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TSCBasic
import TuistCore
import TuistSupport
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistGenerator/Linter/EnvironmentLinter.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import TuistSupport

Expand Down
1 change: 0 additions & 1 deletion Sources/TuistGenerator/Linter/PackageLinter.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import FileSystem
import Foundation
import Path
import TuistCore
import TuistSupport
import XcodeGraph
Expand Down
1 change: 0 additions & 1 deletion Sources/TuistGenerator/Linter/ProjectLinter.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import TuistSupport
import XcodeGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import TuistCore
import XcodeGraph

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import Path
import ServiceContextModule
import TuistCore
import XcodeGraph
Expand Down
Loading

0 comments on commit d2d4651

Please sign in to comment.