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

[tor-commits] [snowflake/master] Remove unused stunURL and relayURL, unused except for parsing tests.



commit dbe1ef4fa55569e5d17c405df5707f6eb05bb56c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Aug 1 10:55:14 2017 -0700

    Remove unused stunURL and relayURL, unused except for parsing tests.
---
 proxy-go/snowflake.go | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/proxy-go/snowflake.go b/proxy-go/snowflake.go
index 9484fd9..26e7994 100644
--- a/proxy-go/snowflake.go
+++ b/proxy-go/snowflake.go
@@ -30,9 +30,7 @@ type snowflakeOptions struct {
 	broker    string
 	brokerURL *url.URL
 	stun      string
-	stunURL   *url.URL
 	relay     string
-	relayURL  *url.URL
 }
 
 const (
@@ -320,11 +318,11 @@ func main() {
 	if err != nil {
 		log.Fatalf("invalid broker url: %s", err)
 	}
-	opt.stunURL, err = url.Parse(opt.stun)
+	_, err = url.Parse(opt.stun)
 	if err != nil {
 		log.Fatalf("invalid stun url: %s", err)
 	}
-	opt.relayURL, err = url.Parse(opt.relay)
+	_, err = url.Parse(opt.relay)
 	if err != nil {
 		log.Fatalf("invalid relay url: %s", err)
 	}

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