Skip to content

Commit 6e87693

Browse files
committed
Fix warnings on ruby 1.9.3
1 parent 79b5ed5 commit 6e87693

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

lib/rdoc/class_module.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,6 @@ def remove_nodoc_children
519519
# Search record used by RDoc::Generator::JsonIndex
520520

521521
def search_record
522-
# TODO squashing the file list seems simplistic
523-
files = @in_files.map { |file| file.absolute_name }
524-
file = files.include?(@parent.full_name) ? files.first : @parent.full_name
525-
526522
[
527523
name,
528524
full_name,

lib/rdoc/parser/ruby.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,6 @@ def parse_comment container, tk, comment
804804

805805
def parse_comment_tomdoc container, tk, comment
806806
return unless signature = RDoc::TomDoc.signature(comment)
807-
column = tk.char_no
808807
offset = tk.seek
809808
line_no = tk.line_no
810809

lib/rdoc/ruby_lex.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def initialize(content, options)
109109

110110
@prompt = nil
111111
@prev_seek = nil
112+
@ltype = nil
112113
end
113114

114115
def inspect # :nodoc:
@@ -1144,7 +1145,7 @@ def identify_number(op = "")
11441145
end
11451146

11461147
def identify_string(ltype, quoted = ltype)
1147-
close = PERCENT_PAREN.values.include?(@quoted)
1148+
close = PERCENT_PAREN.values.include?(quoted)
11481149
@ltype = ltype
11491150
@quoted = quoted
11501151

test/test_rdoc_generator_json_index.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def test_generate_utf_8
138138

139139
json =~ /\Avar search_data = /
140140

141-
assignment = $&
142141
index = $'
143142

144143
index = JSON.parse index

test/test_rdoc_markup_to_html_snippet.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,6 @@ def accept_paragraph_underscore
259259
end
260260

261261
def accept_raw
262-
raw = <<-RAW.rstrip
263-
<table>
264-
<tr><th>Name<th>Count
265-
<tr><td>a<td>1
266-
<tr><td>b<td>2
267-
</table>
268-
RAW
269-
270262
assert_equal '', @to.res.join
271263
assert_equal 0, @to.characters
272264
end

0 commit comments

Comments
 (0)