Remove apparently unused code from core/algorithms