Skip to content

Commit

Permalink
feat(codec): delete setter
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiaha committed May 25, 2023
1 parent 6f24573 commit c5789e7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,22 +225,6 @@ func (builder *Builder) AddPostBuildHook(hook func(app Pitaya)) {
builder.postBuildHooks = append(builder.postBuildHooks, hook)
}

func (builder *Builder) SetPacketDecoder(pd codec.PacketDecoder) {
builder.PacketDecoder = pd
}

func (builder *Builder) SetPacketEncoder(pe codec.PacketEncoder) {
builder.PacketEncoder = pe
}

func (builder *Builder) SetMessageDecoder(md message.Decoder) {
builder.MessageDecoder = md
}

func (builder *Builder) SetMessageEncoder(me message.Encoder) {
builder.MessageEncoder = me
}

// Build returns a valid App instance
func (builder *Builder) Build() Pitaya {
handlerPool := service.NewHandlerPool()
Expand Down

0 comments on commit c5789e7

Please sign in to comment.