Skip to content

Commit f6b15b7

Browse files
authored
Merge pull request mxcl#1154 from SixFiveSoftware/tech/remove_unused_variables
Remove unused index var in when.swift
2 parents 953665d + 817ea8c commit f6b15b7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/when.swift

-2
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,12 @@ public func when<It: IteratorProtocol>(fulfilled promiseIterator: It, concurrent
154154
}
155155
guard shouldDequeue else { return }
156156

157-
var index: Int!
158157
var promise: It.Element!
159158

160159
barrier.sync(flags: .barrier) {
161160
guard let next = generator.next() else { return }
162161

163162
promise = next
164-
index = promises.count
165163

166164
pendingPromises += 1
167165
promises.append(next)

0 commit comments

Comments
 (0)