Skip to content

Commit 77b6c82

Browse files
tomholfordzx2c4
authored andcommitted
global: replaced unused function params with _
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent bc30fee commit 77b6c82

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

conn/errors_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
package conn
99

10-
func errShouldDisableUDPGSO(err error) bool {
10+
func errShouldDisableUDPGSO(_ error) bool {
1111
return false
1212
}

conn/features_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ package conn
1010

1111
import "net"
1212

13-
func supportsUDPOffload(conn *net.UDPConn) (txOffload, rxOffload bool) {
13+
func supportsUDPOffload(_ *net.UDPConn) (txOffload, rxOffload bool) {
1414
return
1515
}

device/allowedips_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestCommonBits(t *testing.T) {
3939
}
4040
}
4141

42-
func benchmarkTrie(peerNumber, addressNumber, addressLength int, b *testing.B) {
42+
func benchmarkTrie(peerNumber, addressNumber, _ int, b *testing.B) {
4343
var trie *trieEntry
4444
var peers []*Peer
4545
root := parentIndirection{&trie, 2}

device/sticky_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import (
77
"golang.zx2c4.com/wireguard/rwcancel"
88
)
99

10-
func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {
10+
func (device *Device) startRouteListener(_ conn.Bind) (*rwcancel.RWCancel, error) {
1111
return nil, nil
1212
}

device/sticky_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* Currently there is no way to achieve this within the net package:
1111
* See e.g. https://github.com/golang/go/issues/17930
12-
* So this code is remains platform dependent.
12+
* So this code remains platform dependent.
1313
*/
1414

1515
package device
@@ -47,7 +47,7 @@ func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, er
4747
return netlinkCancel, nil
4848
}
4949

50-
func (device *Device) routineRouteListener(bind conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
50+
func (device *Device) routineRouteListener(_ conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
5151
type peerEndpointPtr struct {
5252
peer *Peer
5353
endpoint *conn.Endpoint

0 commit comments

Comments
 (0)