mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 05:07:36 +03:00
remove unused getPerspective function from quicConn interface (#4329)
This commit is contained in:
parent
69fe37885f
commit
7b8ceaa264
8 changed files with 10 additions and 113 deletions
|
@ -11,7 +11,6 @@ package quic
|
|||
import (
|
||||
reflect "reflect"
|
||||
|
||||
protocol "github.com/quic-go/quic-go/internal/protocol"
|
||||
qerr "github.com/quic-go/quic-go/internal/qerr"
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
)
|
||||
|
@ -111,44 +110,6 @@ func (c *PacketHandlerdestroyCall) DoAndReturn(f func(error)) *PacketHandlerdest
|
|||
return c
|
||||
}
|
||||
|
||||
// getPerspective mocks base method.
|
||||
func (m *MockPacketHandler) getPerspective() protocol.Perspective {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "getPerspective")
|
||||
ret0, _ := ret[0].(protocol.Perspective)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// getPerspective indicates an expected call of getPerspective.
|
||||
func (mr *MockPacketHandlerMockRecorder) getPerspective() *PacketHandlergetPerspectiveCall {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getPerspective", reflect.TypeOf((*MockPacketHandler)(nil).getPerspective))
|
||||
return &PacketHandlergetPerspectiveCall{Call: call}
|
||||
}
|
||||
|
||||
// PacketHandlergetPerspectiveCall wrap *gomock.Call
|
||||
type PacketHandlergetPerspectiveCall struct {
|
||||
*gomock.Call
|
||||
}
|
||||
|
||||
// Return rewrite *gomock.Call.Return
|
||||
func (c *PacketHandlergetPerspectiveCall) Return(arg0 protocol.Perspective) *PacketHandlergetPerspectiveCall {
|
||||
c.Call = c.Call.Return(arg0)
|
||||
return c
|
||||
}
|
||||
|
||||
// Do rewrite *gomock.Call.Do
|
||||
func (c *PacketHandlergetPerspectiveCall) Do(f func() protocol.Perspective) *PacketHandlergetPerspectiveCall {
|
||||
c.Call = c.Call.Do(f)
|
||||
return c
|
||||
}
|
||||
|
||||
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
||||
func (c *PacketHandlergetPerspectiveCall) DoAndReturn(f func() protocol.Perspective) *PacketHandlergetPerspectiveCall {
|
||||
c.Call = c.Call.DoAndReturn(f)
|
||||
return c
|
||||
}
|
||||
|
||||
// handlePacket mocks base method.
|
||||
func (m *MockPacketHandler) handlePacket(arg0 receivedPacket) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue