diff options
author | murphy <murphy@rubychan.de> | 2011-06-11 17:35:09 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-11 17:35:09 +0000 |
commit | 699d9f3e788abd996b16bef6c30c90660b6efebe (patch) | |
tree | 20605c9fddff6d4661b491d688a85e28effdefda /lib/coderay | |
parent | 473e730ff39b64778caa2b20843a6237d7c592c6 (diff) | |
download | coderay-699d9f3e788abd996b16bef6c30c90660b6efebe.tar.gz |
fix Ruby 1.9.3 warnings about unused local variables
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanner.rb | 2 | ||||
-rw-r--r-- | lib/coderay/scanners/python.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index 00dce7d..925acf7 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -67,7 +67,7 @@ module CodeRay # scanner's internal encoding, with invalid and undefined charachters # replaced by placeholders. Always returns a new object. def normalize code - original = code + # original = code code = code.to_s unless code.is_a? ::String if code.respond_to? :encoding code = encode_with_encoding code, self.encoding diff --git a/lib/coderay/scanners/python.rb b/lib/coderay/scanners/python.rb index f0504c7..8556ba9 100644 --- a/lib/coderay/scanners/python.rb +++ b/lib/coderay/scanners/python.rb @@ -107,7 +107,7 @@ module Scanners string_raw = false string_type = nil docstring_coming = match?(/#{DOCSTRING_COMING}/o) - import_clause = class_name_follows = last_token_dot = false + last_token_dot = false unicode = string.respond_to?(:encoding) && string.encoding.name == 'UTF-8' from_import_state = [] |