Permalink
Browse files

remove dead (unused) code and variables

  • Loading branch information...
1 parent 220d5c7 commit 58c57a8e390b67f6e4c6d52454bcde1e1bdf0e3e @tenderlove tenderlove committed Mar 22, 2013
Showing with 2 additions and 5 deletions.
  1. +1 −2 lib/sass/engine.rb
  2. +0 −1 lib/sass/script/operation.rb
  3. +1 −1 lib/sass/tree/node.rb
  4. +0 −1 lib/sass/tree/visitors/to_css.rb
View
@@ -676,7 +676,6 @@ def parse_property_or_rule(line)
property
else
res.pop if comment
- scanner_start_pos = scanner.pos
interp_parsed = parse_interp(scanner.rest)
selector_range = Sass::Source::Range.new(
ident_range.start_pos,
@@ -913,7 +912,7 @@ def parse_import(line, value, offset)
def parse_import_arg(scanner, offset)
return if scanner.eos?
- if match_length = scanner.match?(/url\(/i)
+ if scanner.match?(/url\(/i)
script_parser = Sass::Script::Parser.new(scanner, @line, to_parser_offset(offset), @options)
str = script_parser.parse_string
@@ -38,7 +38,6 @@ def inspect
# @see Node#to_sass
def to_sass(opts = {})
- pred = Sass::Script::Parser.precedence_of(@operator)
o1 = operand_to_sass @operand1, :left, opts
o2 = operand_to_sass @operand2, :right, opts
sep =
View
@@ -32,7 +32,7 @@ class Node
# The child nodes of this node.
#
# @return [Array<Tree::Node>]
- attr_accessor :children
+ attr_reader :children
# Whether or not this node has child nodes.
# This may be true even when \{#children} is empty,
@@ -280,7 +280,6 @@ def visit_rule(node)
joined_rules.gsub!(/\s*\n\s*/, "#{line_separator}#{per_rule_indent}")
old_spaces = ' ' * @tabs
- spaces = ' ' * (@tabs + 1)
if node.style != :compressed
if node.options[:debug_info] && !@in_directive
visit(debug_info_rule(node.debug_info, node.options))

0 comments on commit 58c57a8

Please sign in to comment.