Skip to content

Commit 5f0023c

Browse files
authored
[NFC] Build: remove unused TestBuildCommand.indent function (#7017)
This function is unused and refers to `Format.asRepeating` from TSC, which itself should be deprecated.
1 parent 55e79b1 commit 5f0023c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Sources/Build/BuildOperationBuildSystemDelegateHandler.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import SPMBuildCore
1919
import SPMLLBuild
2020

2121
import struct TSCBasic.ByteString
22-
import protocol TSCBasic.ByteStreamable
2322
import struct TSCBasic.Format
2423
import class TSCBasic.LocalFileOutputByteStream
2524
import protocol TSCBasic.OutputByteStream
@@ -270,15 +269,6 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand {
270269

271270
private protocol TestBuildCommand {}
272271

273-
/// Functionality common to all build commands related to test targets.
274-
extension TestBuildCommand {
275-
/// Returns a value containing `spaces` number of space characters.
276-
/// Intended to facilitate indenting generated code a specified number of levels.
277-
fileprivate func indent(_ spaces: Int) -> ByteStreamable {
278-
Format.asRepeating(string: " ", count: spaces)
279-
}
280-
}
281-
282272
private final class InProcessTool: Tool {
283273
let context: BuildExecutionContext
284274
let type: CustomLLBuildCommand.Type

0 commit comments

Comments
 (0)