Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Dec 9, 2024
1 parent 9a6ff91 commit 06fe985
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"bytes"
"context"
"crypto/x509"
"fmt"
"io"
"net"
Expand All @@ -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"
Expand Down Expand Up @@ -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{}

0 comments on commit 06fe985

Please sign in to comment.