Skip to content

Commit

Permalink
Remove dead code (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim authored Nov 14, 2022
1 parent 8efb94c commit 5c8d171
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions Source/SourceKittenFramework/StringView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,6 @@ public struct StringView {
return byteRangeToNSRange(byteRange).map(nsString.substring)
}

/// Returns a substring, started at UTF-16 location.
///
/// - parameter location: UTF-16 location.
func substring(from location: Int) -> String {
return nsString.substring(from: location)
}

/**
Converts a range of byte offsets in `self` to an `NSRange` suitable for filtering `self` as an
`NSString`.
Expand Down
6 changes: 0 additions & 6 deletions Tests/SourceKittenFrameworkTests/StringTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,6 @@ class StringTests: XCTestCase {
}
}

typealias LineRangeType = (start: Int, end: Int)

func == (lhs: LineRangeType, rhs: LineRangeType) -> Bool {
return lhs.start == rhs.start && lhs.end == rhs.end
}

private func XCTAssertEqual(_ actual: (Int, Int)?, _ expected: (Int, Int), file: StaticString = #file, line: UInt = #line) {
XCTAssertNotNil(actual, file: file, line: line)

Expand Down

0 comments on commit 5c8d171

Please sign in to comment.