private int removeExceededTracesIfNeeded() {
    int tracesToDiscard = getNumberOfTracesToDiscard();
    if (tracesToDiscard > 0) {
      discardTraces(tracesToDiscard);
    }
    return tracesToDiscard;
  }
Removes traces stored in the buffer.
lynx/src/main/java/com/github/pedrovgs/lynx/presenter/TraceBuffer.java