Using the LocalFilePurgeThumbnails hook, called from purgeOldThumbnails and purgeThumbnails, I'm attempting to purge all old thumbnails for an external CDN in my extension. Both of these core functions get a list of $files to purge, but don't pass those on via the hook. The easiest way to generate this list in my extension was to call $files = $this->getThumbnails() the same way both functions do.
However, this function was made protected in efa1f43a, which broke the functionality with 1.35. Can we either get the $files variable added to the hook, or the function made public?