Skip to content

Commit 414e23e

Browse files
committed
remove old function
1 parent 1acaee6 commit 414e23e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/downloader/monitor.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ type Monitor interface {
1515
Cleanup(models.Track, string) error
1616
}
1717

18-
/* type DownloadStatusFetcher func() (DownloadStatus, error)
19-
type CleanupFunc func(track *models.Track, fileID string)
20-
type MoveFunc func(from, to, path, file string) error
21-
*/
2218
type MonitorConfig struct {
2319
CheckInterval time.Duration
2420
MonitorDuration time.Duration
@@ -129,22 +125,6 @@ func (c *DownloadClient) MonitorDownloads(tracks []*models.Track, m Monitor) err
129125
return nil
130126
}
131127

132-
/* func findFile(statuses []FileStatus, track models.Track) DownloadFiles {
133-
for _, status := range statuses {
134-
if userStatus.Username != track.MainArtistID {
135-
continue
136-
}
137-
for _, dir := range userStatus.Directories {
138-
for _, file := range dir.Files {
139-
if string(file.Filename) == track.File {
140-
return file
141-
}
142-
}
143-
}
144-
}
145-
return DownloadFiles{}
146-
} */
147-
148128
func tracksProcessed(tracks []*models.Track, progressMap map[string]*DownloadMonitor) bool { // Checks if all tracks are processed (either downloaded or skipped)
149129
for _, track := range tracks {
150130
key := fmt.Sprintf("%s|%s", track.ID, track.File)

0 commit comments

Comments
 (0)