code: public CompositeByteBuf removeComponent(int cIndex) {
          checkComponentIndex(cIndex);
          Component comp = components[cIndex];
          if (lastAccessed == comp) {
              lastAccessed = null;
          }
          comp.free();
          removeComp(cIndex);
          if (comp.length() > 0) {
              // Only need to call updateComponentOffsets if the length was > 0
              updateComponentOffsets(cIndex);
          }
          return this;
      }
docs: Remove the {@link ByteBuf} from the given index.
  
  @param cIndex the index on from which the {@link ByteBuf} will be remove