Skip to content

Commit

Permalink
Remove unused variable for fix to avoid warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jan 29, 2013
1 parent 2ec711e commit f9bdbd3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/ole/storage/base.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ole/storage/meta_data.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ole/types/property_set.rb
Expand Up @@ -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
Expand Down

0 comments on commit f9bdbd3

Please sign in to comment.