diff --git a/lib/services/audio_compare_dsp.dart b/lib/services/audio_compare_dsp.dart index 6576c631c..03a25da88 100644 --- a/lib/services/audio_compare_dsp.dart +++ b/lib/services/audio_compare_dsp.dart @@ -763,7 +763,7 @@ class _HighPass { /// Measures the residual windows directly from decoded samples, as the /// FFmpeg pass does for whole songs: `reference - gain * other`, with the /// other file shifted by [offsetFrames] and silent outside its length. -/// Used on excerpts and as the reference implementation in tests. +/// Only tests call it, as the reference the FFmpeg pass is checked against. List audioCompareMeasureWindows({ required Float32List reference, required Float32List other, diff --git a/lib/services/autoplay_taste.dart b/lib/services/autoplay_taste.dart index d05828db2..fa591ada0 100644 --- a/lib/services/autoplay_taste.dart +++ b/lib/services/autoplay_taste.dart @@ -276,15 +276,6 @@ Future trainAutoplayTasteInBackground( List plays, ) async => (await _trainNativePackedTaste(plays)).model; -@visibleForTesting -Future trainAutoplayTasteDartInBackground( - List plays, -) async => (await compute( - _trainPackedTaste, - plays, - debugLabel: 'autoplay-taste', -)).model; - class _Position { _Position(this.song, this.artist, this.weight); final String song, artist; diff --git a/lib/services/playlist_sources.dart b/lib/services/playlist_sources.dart index 11999a423..97d38f020 100644 --- a/lib/services/playlist_sources.dart +++ b/lib/services/playlist_sources.dart @@ -249,18 +249,6 @@ List _groupFolders( ({List rows, Map sourceNames}) request, ) => groupLibraryFolderTree(request.rows, sourceNames: request.sourceNames); -/// The tracks of [folder] in [sortFolderItems] order. -Future> libraryFolderTracks( - LibraryFolder folder, - LibraryDatabase library, -) async { - final rows = await library.getByIds(folder.ids); - final items = sortFolderItems([ - for (final row in rows) LocalLibraryItem.fromJson(row), - ]); - return [for (final item in items) _localTrack(item)]; -} - /// Every Library track inside [root] and all of its subfolders, however /// deep. Only files already in the Library are found. Future libraryFolderTree(