lib/db, lib/discover: Minor cleanup (#8217)

This commit is contained in:
greatroar
2022-03-14 22:48:10 +01:00
committed by GitHub
parent 7b63254a35
commit 26eaedc491
3 changed files with 4 additions and 26 deletions
-14
View File
@@ -512,17 +512,3 @@ func (fv FileVersion) copy() FileVersion {
n.InvalidDevices = append([][]byte{}, fv.InvalidDevices...)
return n
}
type fileList []protocol.FileInfo
func (fl fileList) Len() int {
return len(fl)
}
func (fl fileList) Swap(a, b int) {
fl[a], fl[b] = fl[b], fl[a]
}
func (fl fileList) Less(a, b int) bool {
return fl[a].Name < fl[b].Name
}