[Sass] Get rid of some now-useless interpolation code in Script::String.

This commit is contained in:
Nathan Weizenbaum 2009-04-24 20:19:06 -07:00
parent d97a5c7c4a
commit d39d2eba13
1 changed files with 0 additions and 9 deletions

View File

@ -2,15 +2,6 @@ require 'sass/script/literal'
module Sass::Script
class String < Literal # :nodoc:
INTERPOLATION = /(^|[^\\])\#\{([^}]*)\}/
#TODO pass line & char context to perform
def perform(environment)
interpolated = @value.gsub(INTERPOLATION) do |match|
"#{$1}#{Sass::Script.resolve($2, 0, 0, environment)}"
end
Sass::Script::String.new(interpolated)
end
def to_s
@value
end