/*
 * Copyright (c) 2015-2021, Antonio Gabriel Muñoz Conejo <antoniogmc at gmail dot com>
 * Distributed under the terms of the MIT License
 */
package com.github.tonivade.resp;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

class RespInitializerHandler extends ChannelInitializer<SocketChannel> {

  private final Resp impl;

  RespInitializerHandler(Resp impl) {
    this.impl = impl;
  }

  @Override
  protected void initChannel(SocketChannel channel) throws Exception {
    impl.channel(channel);
  }

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    impl.disconnected(ctx);
  }
}

@@ -176,55 +176,8 @@
 p;%0A%0A
-import io.netty.channel.ChannelHandlerContext;%0A
 impo
@@ -547,128 +547,7 @@
 %0A  %7D
-%0A%0A  @Override%0A  public void channelInactive(ChannelHandlerContext ctx) throws Exception %7B%0A    impl.disconnected(ctx);%0A  %7D
 %0A%7D%0A

remove useless method channelInactive.