mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
lint(systemd): remove dead code
This commit is contained in:
parent
87f2e38017
commit
37c19cc630
@ -3,7 +3,6 @@
|
||||
package sockets
|
||||
|
||||
import (
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
activation "github.com/coreos/go-systemd/activation"
|
||||
@ -45,11 +44,6 @@ func initSockets() {
|
||||
}
|
||||
}
|
||||
|
||||
func mapListeners(nls []net.Listener) ([]manet.Listener, error) {
|
||||
mls := make([]manet.Listener, len(nls))
|
||||
return mls, nil
|
||||
}
|
||||
|
||||
// TakeSockets takes the sockets associated with the given name.
|
||||
func TakeSockets(name string) ([]manet.Listener, error) {
|
||||
socketsMu.Lock()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user