removed unused code for netty 3