Permalink
Browse files

Remove unused variable for fix to avoid warning.

  • Loading branch information...
1 parent 2ec711e commit f9bdbd3706d5363a14037ce5ed35edb90cc31937 @kachick kachick committed Jan 29, 2013
Showing with 2 additions and 3 deletions.
  1. +0 −1 lib/ole/storage/base.rb
  2. +1 −1 lib/ole/storage/meta_data.rb
  3. +1 −1 lib/ole/types/property_set.rb
View
@@ -229,7 +229,6 @@ def flush
# delete a lot of stuff, and free up trailing blocks, the file size never shrinks. this can
# be fixed easily, add an io truncate
@bbat.truncate!
- before = @io.size
@io.truncate @bbat.block_size * (@bbat.length + 1)
while true
# get total bbat size. equivalent to @bbat.to_s.length, but for the factoring in of
@@ -137,7 +137,7 @@ def to_h
def method_missing name, *args, &block
return super unless args.empty?
- pair = Types::PropertySet::PROPERTY_MAP[name.to_s] or return super
+ Types::PropertySet::PROPERTY_MAP[name.to_s] or return super
self[name]
end
end
@@ -68,7 +68,7 @@ class PropertySet
end
module Constants
- DATA.each { |guid, (name, map)| const_set name, guid }
+ DATA.each { |guid, (name, _)| const_set name, guid }
end
include Constants

0 comments on commit f9bdbd3

Please sign in to comment.