]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: replaced unused function params with _
authorTom Holford <tomholford@users.noreply.github.com>
Sun, 4 May 2025 16:49:03 +0000 (18:49 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 5 May 2025 13:10:08 +0000 (15:10 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/errors_default.go
conn/features_default.go
device/allowedips_test.go
device/sticky_default.go
device/sticky_linux.go

index d9675188b8bdd46d19f9c859a46fdd0ddb946122..3c9b223575703465f2cb6f2bc658980c699f9da3 100644 (file)
@@ -7,6 +7,6 @@
 
 package conn
 
-func errShouldDisableUDPGSO(err error) bool {
+func errShouldDisableUDPGSO(_ error) bool {
        return false
 }
index cae2bea525e43478444093ab5d686befd7d2e644..9fc5088e21b86f30b3fb04321d4b1530f1cd1841 100644 (file)
@@ -10,6 +10,6 @@ package conn
 
 import "net"
 
-func supportsUDPOffload(conn *net.UDPConn) (txOffload, rxOffload bool) {
+func supportsUDPOffload(_ *net.UDPConn) (txOffload, rxOffload bool) {
        return
 }
index 9ef8a761c577c98ba30e98a59cafe154e0dcab11..0ce45af99b6deeaca61e656fc465688291f7c653 100644 (file)
@@ -39,7 +39,7 @@ func TestCommonBits(t *testing.T) {
        }
 }
 
-func benchmarkTrie(peerNumber, addressNumber, addressLength int, b *testing.B) {
+func benchmarkTrie(peerNumber, addressNumber, _ int, b *testing.B) {
        var trie *trieEntry
        var peers []*Peer
        root := parentIndirection{&trie, 2}
index 10382565efe371cb8d456c7c4774dbfe041ab18a..22e1e15b5c3c9c645ed354add016a6fee27f2d89 100644 (file)
@@ -7,6 +7,6 @@ import (
        "golang.zx2c4.com/wireguard/rwcancel"
 )
 
-func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {
+func (device *Device) startRouteListener(_ conn.Bind) (*rwcancel.RWCancel, error) {
        return nil, nil
 }
index 7307b7edbcbd2af2f5e3b99a384cd3fe05633861..f23ff0221308a865ab304036a18ad1660924e8cf 100644 (file)
@@ -9,7 +9,7 @@
  *
  * Currently there is no way to achieve this within the net package:
  * See e.g. https://github.com/golang/go/issues/17930
- * So this code is remains platform dependent.
+ * So this code remains platform dependent.
  */
 
 package device
@@ -47,7 +47,7 @@ func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, er
        return netlinkCancel, nil
 }
 
-func (device *Device) routineRouteListener(bind conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
+func (device *Device) routineRouteListener(_ conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
        type peerEndpointPtr struct {
                peer     *Peer
                endpoint *conn.Endpoint