[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary

This commit is contained in:
Manav Gabhawala
2016-04-03 21:16:10 -04:00
parent 0ff3239b96
commit 7928140f79
1137 changed files with 8970 additions and 8846 deletions

View File

@@ -27,7 +27,7 @@ struct Game : Pingable {
}
@inline(never)
func use_protocol(val : Int,_ game1 : Pingable, _ game2 : Pingable) -> Int {
func use_protocol(_ val : Int,_ game1 : Pingable, _ game2 : Pingable) -> Int {
var t = game1.ping() + game1.pong()
if (val % 2 == 0) {
t += game1.pong() + game1.ping()
@@ -44,12 +44,12 @@ func use_protocol(val : Int,_ game1 : Pingable, _ game2 : Pingable) -> Int {
}
@inline(never)
func wrapper(val : Int,_ game1 : Pingable, _ game2 : Pingable) -> Int {
func wrapper(_ val : Int,_ game1 : Pingable, _ game2 : Pingable) -> Int {
return use_protocol(val, game1, game2)
}
@inline(never)
public func run_ProtocolDispatch2(N: Int) {
public func run_ProtocolDispatch2(_ N: Int) {
var c = 0
let g1 = Game()
let g2 = Game()