Skip to content

Commit

Permalink
Delete broke automatic removal
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Jul 7, 2024
1 parent b8ce5ef commit 6273b73
Show file tree
Hide file tree
Showing 35 changed files with 0 additions and 1,313 deletions.
4 changes: 0 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ var targets: [PackageDescription.Target] = [
],
path: "Tests/Fixtures/RetentionFixtures"
),
.target(
name: "RemovalFixtures",
path: "Tests/Fixtures/RemovalFixtures"
),
.target(
name: "UnusedParameterFixtures",
path: "Tests/Fixtures/UnusedParameterFixtures",
Expand Down
4 changes: 0 additions & 4 deletions Sources/Frontend/Commands/ScanBehavior.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ final class ScanBehavior {

let filteredResults = try OutputDeclarationFilter().filter(results, with: baseline)

if configuration.autoRemove {
try ScanResultRemover().remove(results: filteredResults)
}

if let baselinePath = configuration.writeBaseline {
let usrs = filteredResults
.flatMapSet { $0.usrs }
Expand Down
4 changes: 0 additions & 4 deletions Sources/Frontend/Commands/ScanCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ struct ScanCommand: FrontendCommand {
@Flag(help: "Retain properties on Encodable types only")
var retainEncodableProperties: Bool = defaultConfiguration.$retainEncodableProperties.defaultValue

@Flag(help: "Automatically remove code that can be done so safely without introducing build errors (experimental)")
var autoRemove: Bool = defaultConfiguration.$autoRemove.defaultValue

@Flag(help: "Clean existing build artifacts before building")
var cleanBuild: Bool = defaultConfiguration.$cleanBuild.defaultValue

Expand Down Expand Up @@ -166,7 +163,6 @@ struct ScanCommand: FrontendCommand {
configuration.apply(\.$externalEncodableProtocols, externalEncodableProtocols)
configuration.apply(\.$externalCodableProtocols, externalCodableProtocols)
configuration.apply(\.$externalTestCaseClasses, externalTestCaseClasses)
configuration.apply(\.$autoRemove, autoRemove)
configuration.apply(\.$verbose, verbose)
configuration.apply(\.$quiet, quiet)
configuration.apply(\.$disableUpdateCheck, disableUpdateCheck)
Expand Down
29 changes: 0 additions & 29 deletions Sources/PeripheryKit/CodeRemoval/EmptyExtensionSyntaxRemover.swift

This file was deleted.

30 changes: 0 additions & 30 deletions Sources/PeripheryKit/CodeRemoval/EmptyFileVisitor.swift

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6273b73

Please sign in to comment.