package org.adbcj.h2;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufOutputStream;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import org.adbcj.h2.packets.ClientToServerPacket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.DataOutputStream;


class Encoder extends MessageToByteEncoder<ClientToServerPacket> {
    private final static Logger logger = LoggerFactory.getLogger(Encoder.class);

    @Override
    public void encode(ChannelHandlerContext ctx, ClientToServerPacket request, ByteBuf buffer) throws Exception {
        ByteBufOutputStream out = new ByteBufOutputStream(buffer);
        DataOutputStream dataOutputStream = new DataOutputStream(out);
        request.writeToStream(dataOutputStream);
        dataOutputStream.close();
        out.close();
    }
}

@@ -419,92 +419,8 @@
  %7B%0D%0A
-    private final static Logger logger = LoggerFactory.getLogger(Encoder.class);%0D%0A%0D%0A
     

Remove unused logger