Skip to content

Commit

Permalink
Merge pull request #2116 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
remove unused packages
  • Loading branch information
ucwong authored Aug 14, 2024
2 parents a24dd91 + 8dda92d commit b7c83b2
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 6,591 deletions.
12 changes: 2 additions & 10 deletions p2p/simulations/pipes/pipes.go → p2p/pipes/pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@

package pipes

import (
"net"
)
import "net"

// NetPipe wraps net.Pipe in a signature returning an error
func NetPipe() (net.Conn, net.Conn, error) {
p1, p2 := net.Pipe()
return p1, p2, nil
}

// TCPPipe creates an in process full duplex pipe based on a localhost TCP socket
// TCPPipe creates an in process full duplex pipe based on a localhost TCP socket.
func TCPPipe() (net.Conn, net.Conn, error) {
l, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion p2p/rlpx/rlpx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

"github.com/CortexFoundation/CortexTheseus/crypto"
"github.com/CortexFoundation/CortexTheseus/crypto/ecies"
"github.com/CortexFoundation/CortexTheseus/p2p/simulations/pipes"
"github.com/CortexFoundation/CortexTheseus/p2p/pipes"
"github.com/CortexFoundation/CortexTheseus/rlp"
"github.com/davecgh/go-spew/spew"
"github.com/stretchr/testify/assert"
Expand Down
174 changes: 0 additions & 174 deletions p2p/simulations/README.md

This file was deleted.

Loading

0 comments on commit b7c83b2

Please sign in to comment.