From c5789e7d2f3763f689a5225cf7424f6b755a8ab9 Mon Sep 17 00:00:00 2001 From: pipiaha <393818655@qq.com> Date: Thu, 25 May 2023 16:49:58 +0800 Subject: [PATCH] feat(codec): delete setter --- builder.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/builder.go b/builder.go index 6fa7f32b..660571f9 100644 --- a/builder.go +++ b/builder.go @@ -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()