mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-24 18:40:43 +02:00
refactor(bridge): remove dead cross-layer platform bridge methods
This commit is contained in:
@@ -108,25 +108,6 @@ func markMultiProgressDirtyIfChangedLocked(item *ItemProgress, before progressBr
|
||||
}
|
||||
}
|
||||
|
||||
func getProgress() DownloadProgress {
|
||||
multiMu.RLock()
|
||||
defer multiMu.RUnlock()
|
||||
|
||||
for _, item := range multiProgress.Items {
|
||||
return DownloadProgress{
|
||||
CurrentFile: item.ItemID,
|
||||
Progress: item.Progress * 100,
|
||||
BytesTotal: item.BytesTotal,
|
||||
BytesReceived: item.BytesReceived,
|
||||
IsDownloading: item.IsDownloading,
|
||||
Status: item.Status,
|
||||
Stage: item.Stage,
|
||||
}
|
||||
}
|
||||
|
||||
return DownloadProgress{}
|
||||
}
|
||||
|
||||
func GetMultiProgress() string {
|
||||
multiMu.RLock()
|
||||
if !multiProgressDirty {
|
||||
|
||||
Reference in New Issue
Block a user