From 06fe98525b39fc25ff723784488f313942ae0ba5 Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Mon, 9 Dec 2024 13:57:39 -0700 Subject: [PATCH] Removed unused code --- client/client_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 22c61b224..01d26c417 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -4,7 +4,6 @@ import ( "bufio" "bytes" "context" - "crypto/x509" "fmt" "io" "net" @@ -18,7 +17,6 @@ import ( "time" "github.com/getlantern/detour" - "github.com/getlantern/fronted" "github.com/getlantern/golog" "github.com/getlantern/mockconn" "github.com/getlantern/shortcut" @@ -607,20 +605,3 @@ type response struct { func (r *response) nested() (*http.Response, error) { return http.ReadResponse(r.br, r.req) } - -// testFronted implements fronted.Fronted for testing. -type testFronted struct { -} - -func (f *testFronted) UpdateConfig(pool *x509.CertPool, providers map[string]*fronted.Provider) { - -} -func (f *testFronted) RoundTrip(req *http.Request) (*http.Response, error) { - return nil, nil -} - -func (f *testFronted) Close() { -} - -// Make sure testFronted implements fronted.Fronted -var _ fronted.Fronted = &testFronted{}