]> Cypherpunks repositories - gostls13.git/commitdiff
net: remove an unused sync.Map in the fake net implementation
authorBryan C. Mills <bcmills@google.com>
Sat, 20 Jan 2024 00:01:54 +0000 (19:01 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 22 Jan 2024 16:09:18 +0000 (16:09 +0000)
I added this map in CL 526117, but it is apparently unused.
I assume that I removed all uses of it while revising that change.

Updates #59718.
Updates #50216.

Change-Id: I8cdac39f4764d1fcc31566408304c850cf0f9374
Reviewed-on: https://go-review.googlesource.com/c/go/+/557176
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/net/net_fake.go

index 525ff3229683342315cbdc66eb400f1c52e00785..60b52b79fd0e78a5b86cf33cf3c42cb0c944a39a 100644 (file)
@@ -23,7 +23,6 @@ import (
 
 var (
        sockets         sync.Map // fakeSockAddr → *netFD
-       fakeSocketIDs   sync.Map // fakeNetFD.id → *netFD
        fakePorts       sync.Map // int (port #) → *netFD
        nextPortCounter atomic.Int32
 )