hardDrop method

bool hardDrop(
  1. int timestamp
)

Implementation

bool hardDrop(int timestamp) {
  //ux call to drop pending
  if (_data[timestamp] == null) return false;
  _data.remove(timestamp);
  _pending.remove(timestamp);
  _dropped.add(timestamp);
  deleteFromDiskQueue(timestamp);
  return true;
}