id3v2: remove unused method and merge declaration

This commit is contained in:
David Howden 2018-04-02 08:17:48 +10:00
parent 964345f10f
commit f163d543fb
2 changed files with 1 additions and 10 deletions

View File

@ -396,8 +396,7 @@ func ReadID3v2Tags(r io.ReadSeeker) (Metadata, error) {
return nil, err
}
var ur io.Reader
ur = r
var ur io.Reader = r
if h.Unsynchronisation {
ur = &unsynchroniser{Reader: r}
}

View File

@ -59,14 +59,6 @@ func (m metadataID3v2) getString(k string) string {
return v.(string)
}
func (m metadataID3v2) getInt(k string) int {
v, ok := m.frames[k]
if !ok {
return 0
}
return v.(int)
}
func (m metadataID3v2) Format() Format { return m.header.Version }
func (m metadataID3v2) FileType() FileType { return MP3 }
func (m metadataID3v2) Raw() map[string]interface{} { return m.frames }