mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Get rid of some now-useless interpolation code in Script::String.
This commit is contained in:
parent
d97a5c7c4a
commit
d39d2eba13
1 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue