Browse Source

Remove unused CurApk()

APKs should not be suggested without knowledge about the device they
will be installed on.
pull/8/head
relan 10 years ago
parent
commit
e36744405b
  1. 13
      index.go

13
index.go

@ -267,19 +267,6 @@ func LoadIndexXML(r io.Reader) (*Index, error) {
return &index, nil
}
func (a *App) CurApk() *Apk {
for i := range a.Apks {
apk := a.Apks[i]
if a.CVCode >= apk.VCode {
return &apk
}
}
if len(a.Apks) > 0 {
return &a.Apks[0]
}
return nil
}
func (a *App) ApksByVName(vname string) []Apk {
var apks []Apk
for i := range a.Apks {

Loading…
Cancel
Save