Skip to content
This repository
Browse code

Remove special case for 1.9.1

  • Loading branch information...
commit 5e6cafa44d635d4aff9f5d0beec8a7ad501a76c6 1 parent 10a8ffa
Guillermo Iguaran authored May 19, 2012

Showing 1 changed file with 0 additions and 23 deletions. Show diff stats Hide diff stats

  1. 23  lib/tilt/template.rb
23  lib/tilt/template.rb
@@ -227,28 +227,5 @@ def extract_magic_comment(script)
227 227
         "# coding: #{@default_encoding}"
228 228
       end
229 229
     end
230  
-
231  
-    # Special case Ruby 1.9.1's broken yield.
232  
-    #
233  
-    # http://github.com/rtomayko/tilt/commit/20c01a5
234  
-    # http://redmine.ruby-lang.org/issues/show/3601
235  
-    #
236  
-    # Remove when 1.9.2 dominates 1.9.1 installs in the wild.
237  
-    if RUBY_VERSION =~ /^1.9.1/
238  
-      undef compile_template_method
239  
-      def compile_template_method(locals)
240  
-        source, offset = precompiled(locals)
241  
-        offset += 1
242  
-        method_name = "__tilt_#{Thread.current.object_id}"
243  
-        Object.class_eval <<-RUBY, eval_file, line - offset
244  
-          TOPOBJECT.class_eval do
245  
-            def #{method_name}(locals)
246  
-              #{source}
247  
-            end
248  
-          end
249  
-        RUBY
250  
-        unbind_compiled_method(method_name)
251  
-      end
252  
-    end
253 230
   end
254 231
 end

0 notes on commit 5e6cafa

Please sign in to comment.
Something went wrong with that request. Please try again.