From 802a6671cb3617cb280bd04f952f85a0ef53b01d Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Thu, 27 Feb 2014 18:53:18 -0500 Subject: [PATCH] Remove unused Block#end_tag method. Although the method is called, it is defined with an empty body and not overridden to do anything else. --- lib/liquid/block.rb | 8 +------- lib/liquid/tags/raw.rb | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/liquid/block.rb b/lib/liquid/block.rb index a5118f9..b75de2e 100644 --- a/lib/liquid/block.rb +++ b/lib/liquid/block.rb @@ -24,10 +24,7 @@ module Liquid # if we found the proper block delimiter just end parsing here and let the outer block # proceed - if block_delimiter == $1 - end_tag - return - end + return if block_delimiter == $1 # fetch the tag from registered blocks if tag = Template.tags[$1] @@ -74,9 +71,6 @@ module Liquid all_warnings end - def end_tag - end - def unknown_tag(tag, params, tokens) case tag when 'else'.freeze diff --git a/lib/liquid/tags/raw.rb b/lib/liquid/tags/raw.rb index 0980ee1..59e52c9 100644 --- a/lib/liquid/tags/raw.rb +++ b/lib/liquid/tags/raw.rb @@ -8,10 +8,7 @@ module Liquid while token = tokens.shift if token =~ FullTokenPossiblyInvalid @nodelist << $1 if $1 != "".freeze - if block_delimiter == $2 - end_tag - return - end + return if block_delimiter == $2 end @nodelist << token if not token.empty? end