id3v2: remove unused method and merge declaration
This commit is contained in:
parent
964345f10f
commit
f163d543fb
3
id3v2.go
3
id3v2.go
@ -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}
|
||||
}
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user