forked from quic-go/quic-go
remove unused GetVersion function from quicConn interface (#4327)
This commit is contained in:
@@ -233,44 +233,6 @@ func (c *QUICConnContextCall) DoAndReturn(f func() context.Context) *QUICConnCon
|
|||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetVersion mocks base method.
|
|
||||||
func (m *MockQUICConn) GetVersion() protocol.Version {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
ret := m.ctrl.Call(m, "GetVersion")
|
|
||||||
ret0, _ := ret[0].(protocol.Version)
|
|
||||||
return ret0
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetVersion indicates an expected call of GetVersion.
|
|
||||||
func (mr *MockQUICConnMockRecorder) GetVersion() *QUICConnGetVersionCall {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersion", reflect.TypeOf((*MockQUICConn)(nil).GetVersion))
|
|
||||||
return &QUICConnGetVersionCall{Call: call}
|
|
||||||
}
|
|
||||||
|
|
||||||
// QUICConnGetVersionCall wrap *gomock.Call
|
|
||||||
type QUICConnGetVersionCall struct {
|
|
||||||
*gomock.Call
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return rewrite *gomock.Call.Return
|
|
||||||
func (c *QUICConnGetVersionCall) Return(arg0 protocol.Version) *QUICConnGetVersionCall {
|
|
||||||
c.Call = c.Call.Return(arg0)
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do rewrite *gomock.Call.Do
|
|
||||||
func (c *QUICConnGetVersionCall) Do(f func() protocol.Version) *QUICConnGetVersionCall {
|
|
||||||
c.Call = c.Call.Do(f)
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
|
|
||||||
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
||||||
func (c *QUICConnGetVersionCall) DoAndReturn(f func() protocol.Version) *QUICConnGetVersionCall {
|
|
||||||
c.Call = c.Call.DoAndReturn(f)
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
|
|
||||||
// HandshakeComplete mocks base method.
|
// HandshakeComplete mocks base method.
|
||||||
func (m *MockQUICConn) HandshakeComplete() <-chan struct{} {
|
func (m *MockQUICConn) HandshakeComplete() <-chan struct{} {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ type quicConn interface {
|
|||||||
EarlyConnection
|
EarlyConnection
|
||||||
earlyConnReady() <-chan struct{}
|
earlyConnReady() <-chan struct{}
|
||||||
handlePacket(receivedPacket)
|
handlePacket(receivedPacket)
|
||||||
GetVersion() protocol.Version
|
|
||||||
getPerspective() protocol.Perspective
|
getPerspective() protocol.Perspective
|
||||||
run() error
|
run() error
|
||||||
destroy(error)
|
destroy(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user