control/controlclient, ipn/ipnlocal: remove some Client methods

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-06-19 18:00:50 -07:00
committed by Brad Fitzpatrick
parent a1e429f7c3
commit 70a2797064
3 changed files with 6 additions and 20 deletions

View File

@@ -6,7 +6,6 @@ package ipnlocal
import (
"context"
"net/http"
"sync"
"testing"
"time"
@@ -264,14 +263,6 @@ func (cc *mockControl) UpdateEndpoints(endpoints []tailcfg.Endpoint) {
cc.called("UpdateEndpoints")
}
func (*mockControl) SetDNS(context.Context, *tailcfg.SetDNSRequest) error {
panic("unexpected SetDNS call")
}
func (*mockControl) DoNoiseRequest(*http.Request) (*http.Response, error) {
panic("unexpected DoNoiseRequest call")
}
// A very precise test of the sequence of function calls generated by
// ipnlocal.Local into its controlclient instance, and the events it
// produces upstream into the UI.