code: @SuppressWarnings("unused")
      private void discard(IRTMPEvent event) {
          if (event instanceof IStreamData<?>) {
              log.debug("Discarding: {}", ((IStreamData<?>) event).toString());
              IoBuffer data = ((IStreamData<?>) event).getData();
              if (data != null) {
                  log.trace("Freeing discarded event data");
                  data.free();
                  data = null;
              }
          }
          event.setHeader(null);
      }
docs: Discard an event routed to this channel.
  
  @param event