[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/main] Remove unused FakePeers.



commit d9a83e26b5de158da481e87702183546a4ea4e65
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sun Jul 18 13:11:29 2021 -0600

    Remove unused FakePeers.
    
    Unused since 1364d7d45bbec9de605a266a84ea60cdfa6676db.
---
 client/lib/lib_test.go | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/client/lib/lib_test.go b/client/lib/lib_test.go
index e0856a5..daeeaf9 100644
--- a/client/lib/lib_test.go
+++ b/client/lib/lib_test.go
@@ -52,12 +52,6 @@ func (f FakeSocksConn) Reject() error {
 }
 func (f FakeSocksConn) Grant(addr *net.TCPAddr) error { return nil }
 
-type FakePeers struct{ toRelease *WebRTCPeer }
-
-func (f FakePeers) Collect() (*WebRTCPeer, error) { return &WebRTCPeer{}, nil }
-func (f FakePeers) Pop() *WebRTCPeer              { return nil }
-func (f FakePeers) Melted() <-chan struct{}       { return nil }
-
 func TestSnowflakeClient(t *testing.T) {
 
 	Convey("Peers", t, func() {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits