Project

General

Profile

« Previous | Next » 

Revision 9d389d65

Added by k0kubun (Takashi Kokubun) about 8 years ago

erb.rb: drop unreachable method

This seems to be unreachable from first introduction at r21286.

In ERB implementation, #empty? is only called for each member of
return value of String#scan, and ERB::Compiler::PercentLine is never
returned from String#scan.

Also, in ERB::Compiler#compile, as it's yielded only when stag is nil,
methods called to ERB::Compiler::PercentLine object yielded from
ERB::Compiler::TrimScanner#scan are only: #nil?, #==, to_s.

Thus ERB::Compiler::PercentLine#empty? is never used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e