Permalink
Browse files

Avoid warnings for assigned but unused variables

  • Loading branch information...
1 parent 8e2e7cc commit 181e2ccb7c3931ba38672fdb7f3c172264db66d2 @stomar stomar committed Oct 15, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/mp3info.rb
  2. +1 −1 lib/mp3info/id3v2.rb
View
@@ -683,7 +683,7 @@ def parse_mp3
@length = ((stream_size << 3)/1000.0)/@bitrate
# read the first 100 frames and decide if the mp3 is vbr and needs full scan
begin
- bitrate, length = frame_scan(100)
+ bitrate = frame_scan(100).first
if @bitrate != bitrate
@vbr = true
@bitrate, @length = frame_scan
View
@@ -223,7 +223,7 @@ def from_io(io)
original_pos = @io.pos
@io.extend(Mp3Info::Mp3FileMethods)
version_maj, version_min, flags = @io.read(3).unpack("CCB4")
- @unsync, ext_header, experimental, footer = (0..3).collect { |i| flags[i].chr == '1' }
+ @unsync, ext_header, _, _ = (0..3).collect { |i| flags[i].chr == '1' }
raise(ID3v2Error, "can't find version_maj ('#{version_maj}')") unless [2, 3, 4].include?(version_maj)
@version_maj, @version_min = version_maj, version_min
@tag_length = @io.get_syncsafe

0 comments on commit 181e2cc

Please sign in to comment.