Skip to content

Commit

Permalink
Removes unnecessary tag parameter for add_default
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 13, 2014
1 parent 06a64ec commit 02e7522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CSS/Sass/Type.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sub add_field {
@{$index{$class}}{@new_field} = (0..$#new_field);
}
sub add_default {
my ($class, $tag, $field, $value) = @_;
my ($class, $field, $value) = @_;
$default{$class}->{$field} = $value;
}
sub xs_rep {
Expand Down Expand Up @@ -56,7 +56,7 @@ __PACKAGE__->add_field(CSS::Sass::SASS_BOOLEAN, qw(value));
package CSS::Sass::Type::Number;
use base 'CSS::Sass::Type';
__PACKAGE__->add_field(CSS::Sass::SASS_NUMBER, qw(value unit));
__PACKAGE__->add_default(CSS::Sass::SASS_NUMBER, 'unit', '');
__PACKAGE__->add_default('unit', '');

package CSS::Sass::Type::Color;
use base 'CSS::Sass::Type';
Expand Down

0 comments on commit 02e7522

Please sign in to comment.