From e952b3702c86708c491876f048fb940aeac2e26d Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 22 Jul 2021 21:16:57 +0200 Subject: [PATCH] remove deprecated constructor for the insecure transport (#206) --- sec/insecure/insecure.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sec/insecure/insecure.go b/sec/insecure/insecure.go index eb8dc442..487bb675 100644 --- a/sec/insecure/insecure.go +++ b/sec/insecure/insecure.go @@ -31,15 +31,7 @@ type Transport struct { key ci.PrivKey } -// New constructs a new insecure transport. -// Deprecated: use NewWithIdentity instead. -func New(id peer.ID) *Transport { - return &Transport{ - id: id, - } -} - -// New constructs a new insecure transport. The provided private key +// NewWithIdentity constructs a new insecure transport. The provided private key // is stored and returned from LocalPrivateKey to satisfy the // SecureTransport interface, and the public key is sent to // remote peers. No security is provided.