diff --git a/id3v2.go b/id3v2.go index c3af801..063e6cb 100644 --- a/id3v2.go +++ b/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} } diff --git a/id3v2metadata.go b/id3v2metadata.go index 4c67add..b5dfd05 100644 --- a/id3v2metadata.go +++ b/id3v2metadata.go @@ -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 }