Skip to content

Commit 1229dff

Browse files
committed
Remove redundant modifiers to address the warnings
1 parent 2f30a90 commit 1229dff

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

TestFoundation/TestNSAttributedString.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -296,19 +296,19 @@ class TestNSAttributedString : XCTestCase {
296296

297297
fileprivate extension TestNSAttributedString {
298298

299-
fileprivate func describe(range: NSRange) -> String {
299+
func describe(range: NSRange) -> String {
300300
return "(\(range.location),\(range.length))"
301301
}
302302

303-
fileprivate func describe(attr: Any?) -> String {
303+
func describe(attr: Any?) -> String {
304304
if let attr = attr {
305305
return "\(attr)" + "|"
306306
} else {
307307
return "nil" + "|"
308308
}
309309
}
310310

311-
fileprivate func describe(attrs: [NSAttributedStringKey : Any]) -> String {
311+
func describe(attrs: [NSAttributedStringKey : Any]) -> String {
312312
if attrs.count > 0 {
313313
let mapped: [String] = attrs.map({ "\($0.rawValue):\($1)" })
314314
let sorted: [String] = mapped.sorted(by: { $0 < $1 })

TestFoundation/TestOperationQueue.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class AsyncOperation: Operation {
203203
private var _executing = false
204204
private var _finished = false
205205

206-
override internal(set) var isExecuting: Bool {
206+
override var isExecuting: Bool {
207207
get {
208208
lock.lock()
209209
let wasExecuting = _executing
@@ -221,7 +221,7 @@ class AsyncOperation: Operation {
221221
}
222222
}
223223

224-
override internal(set) var isFinished: Bool {
224+
override var isFinished: Bool {
225225
get {
226226
lock.lock()
227227
let wasFinished = _finished

TestFoundation/TestXMLDocument.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class TestXMLDocument : LoopbackServerTest {
547547
}
548548

549549
fileprivate extension XMLNode {
550-
fileprivate func findFirstChild(named name: String) -> XMLNode? {
550+
func findFirstChild(named name: String) -> XMLNode? {
551551
guard let children = self.children else {
552552
return nil
553553
}

0 commit comments

Comments
 (0)