forked from Silverfish/proton-bridge
Other(refactor): Remove unused frontend args
This commit is contained in:
@ -42,9 +42,6 @@ type Frontend interface {
|
||||
|
||||
// New returns initialized frontend based on `frontendType`, which can be `cli` or `grpc`.
|
||||
func New(
|
||||
version,
|
||||
buildVersion,
|
||||
programName,
|
||||
frontendType string,
|
||||
showWindowOnStart bool,
|
||||
panicHandler types.PanicHandler,
|
||||
@ -62,8 +59,6 @@ func New(
|
||||
switch frontendType {
|
||||
case "grpc":
|
||||
return grpc.NewService(
|
||||
version,
|
||||
programName,
|
||||
showWindowOnStart,
|
||||
panicHandler,
|
||||
tls,
|
||||
|
||||
@ -52,8 +52,6 @@ type Service struct { // nolint:structcheck
|
||||
eventStreamCh chan *StreamEvent
|
||||
eventStreamDoneCh chan struct{}
|
||||
|
||||
programName string
|
||||
programVersion string
|
||||
panicHandler types.PanicHandler
|
||||
tls *bridgetls.TLS
|
||||
locations *locations.Locations
|
||||
@ -77,8 +75,6 @@ type Service struct { // nolint:structcheck
|
||||
|
||||
// NewService returns a new instance of the service.
|
||||
func NewService(
|
||||
version,
|
||||
programName string,
|
||||
showOnStartup bool,
|
||||
panicHandler types.PanicHandler,
|
||||
tls *bridgetls.TLS,
|
||||
@ -94,8 +90,6 @@ func NewService(
|
||||
) *Service {
|
||||
s := Service{
|
||||
UnimplementedBridgeServer: UnimplementedBridgeServer{},
|
||||
programName: programName,
|
||||
programVersion: version,
|
||||
panicHandler: panicHandler,
|
||||
tls: tls,
|
||||
locations: locations,
|
||||
|
||||
Reference in New Issue
Block a user