Skip to content
Browse files

Remove old code

  • Loading branch information...
1 parent d7fe71e commit 26af3b0aebbf0434096771911f3f26adbb4ca9b1 @tnm committed Jul 13, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/pygments/popen.rb
View
3 lib/pygments/popen.rb
@@ -140,7 +140,6 @@ def lexer_name_for(*args)
# in the standard 'rpc' call.
#
def highlight(code, opts={})
- l = File.open('rubylog', 'a')
# If the caller didn't give us any code, we have nothing to do,
# so return right away.
return code if code.nil? || code.empty?
@@ -150,7 +149,6 @@ def highlight(code, opts={})
# Default to utf-8 for the output encoding, if not given.
opts[:options][:outencoding] ||= 'utf-8'
- l.write(opts.to_s + "\n")
# Get back the string from mentos and force encoding if we can
str = mentos(:highlight, code, opts, code)
@@ -205,7 +203,6 @@ def mentos(method, args=[], kwargs={}, code=nil)
#
# If there's text/code to be highlighted, we send that after.
@in.write(out_header)
- #@in.write(code) if code
# Get the response header
header = @out.gets

0 comments on commit 26af3b0

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