From f163d543fb1cebecac2e8b5274eaebc329d83c6b Mon Sep 17 00:00:00 2001 From: David Howden Date: Mon, 2 Apr 2018 08:17:48 +1000 Subject: [PATCH] id3v2: remove unused method and merge declaration --- id3v2.go | 3 +-- id3v2metadata.go | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) 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 }