From bb650f82019a6d1c706d07b4fc3e4f85b0f259c2 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 30 Mar 2010 01:42:20 +0000 Subject: Code cleanup. --- lib/coderay/tokens.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/coderay/tokens.rb') diff --git a/lib/coderay/tokens.rb b/lib/coderay/tokens.rb index aa78ee7..0cefef2 100644 --- a/lib/coderay/tokens.rb +++ b/lib/coderay/tokens.rb @@ -101,7 +101,6 @@ module CodeRay encoder.encode_tokens self, options end - # Turn into a string using Encoders::Text. # # +options+ are passed to the encoder if given. @@ -129,7 +128,7 @@ module CodeRay # for example, consecutive //-comment lines could already be # joined in one comment token by the Scanner. def optimize - print ' Tokens#optimize: before: %d - ' % size if $DEBUG + # print ' Tokens#optimize: before: %d - ' % size last_kind = last_text = nil new = self.class.new for text, kind in self @@ -148,8 +147,7 @@ module CodeRay end end new << [last_text, last_kind] if last_kind - print 'after: %d (%d saved = %2.0f%%)' % - [new.size, size - new.size, 1.0 - (new.size.to_f / size)] if $DEBUG + # print 'after: %d (%d saved = %2.0f%%)' % [new.size, size - new.size, 1.0 - (new.size.to_f / size)] new end -- cgit v1.2.1