50      QList <RawCubeChunk *> allocated, QList <RawCubeChunk *> justUsed,
 
   51          const Buffer &justRequested) {
 
   53    QList<RawCubeChunk *> chunksToToss;
 
   55    if (justUsed.size() > 0) {
 
   57      int minLine = justUsed[0]->getStartLine();
 
   59      QListIterator<RawCubeChunk *> justUsedIterator(justUsed);
 
   60      while (justUsedIterator.hasNext()) {
 
   63        if (currentStart < minLine) minLine = currentStart;
 
   68        QListIterator<RawCubeChunk *> allocatedIterator(allocated);
 
   69        while (allocatedIterator.hasNext()) {
 
   71          int currentEnd = chunk->
getStartLine() + chunk->lineCount() - 1;
 
   73          if (currentEnd < minLine) {
 
   74            chunksToToss.append(chunk);