Permalink
Browse files

Get rid of UnusedParameter warnings from reek

  • Loading branch information...
1 parent 9b9dc42 commit 24da04298c464af0b71009496703e755706d46af @solnic committed Mar 9, 2013
View
@@ -58,7 +58,7 @@ def self.build(name, type = Object, options = {})
end
# @api public
- def self.coercer(*args)
+ def self.coercer(*)
Coercer.new(Virtus.coercer, coercion_method)
end
@@ -73,12 +73,12 @@ def self.writer_class(type, options)
end
# @api private
- def self.coercible_writer_class(type, options)
+ def self.coercible_writer_class(_type, _options)
Writer::Coercible
end
# @api private
- def self.reader_options(attribute_options)
+ def self.reader_options(*)
{}
end
@@ -17,7 +17,7 @@ class Collection < Object
# @return [Hash]
#
# @api private
- def self.merge_options(type, options)
+ def self.merge_options(type, _options)
merged_options = super
if !type.respond_to?(:count)
@@ -32,7 +32,7 @@ def self.merge_options(type, options)
end
# @api private
- def self.coercible_writer_class(type, options)
+ def self.coercible_writer_class(_type, options)
options[:member_type] ? CoercibleWriter : super
end
@@ -41,7 +41,7 @@ def initialize(name, options)
# @return [Object]
#
# @api private
- def coerce(value)
+ def coerce(_value)
coerced = super
return coerced unless coerced.respond_to?(:each_with_object)
coerced.each_with_object(new_collection) do |entry, collection|
@@ -31,7 +31,7 @@ class EmbeddedValue < Object
# an updated options hash for configuring an EmbeddedValue instance
#
# @api private
- def self.merge_options(type, options)
+ def self.merge_options(type, _options)
super.update(:primitive => type)
end
@@ -26,7 +26,7 @@ class Hash < Object
# @return [Hash]
#
# @api private
- def self.merge_options(type, options)
+ def self.merge_options(type, _options)
merged_options = super
if !type.respond_to?(:size)
@@ -42,7 +42,7 @@ def self.merge_options(type, options)
end
# @api private
- def self.coercible_writer_class(type, options)
+ def self.coercible_writer_class(_type, options)
options[:key_type] && options[:value_type] ? CoercibleWriter : super
end
@@ -50,7 +50,7 @@ def initialize(name, options)
# @return [Object]
#
# @api private
- def coerce(input)
+ def coerce(_value)
coerced = super
return coerced unless coerced.respond_to?(:each_with_object)
coerced.each_with_object(new_hash) do |(key, value), hash|

0 comments on commit 24da042

Please sign in to comment.