code: private synchronized void trim() {
          while (currentSize > sizeLimit) {
              Bitmap bitmap = bitmapsByLastUse.remove(0);
              bitmapsBySize.remove(bitmap);
              currentSize -= getBitmapSize(bitmap);
          }
      }
docs: Removes buffers from the pool until it is under its size limit.