Skip to content

Commit 26bab53

Browse files
committed
Remove debugging code
1 parent 759d1e4 commit 26bab53

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

lib/rdoc/markup/attribute_manager.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,21 +174,16 @@ def add_special(pattern, name)
174174
def flow(str)
175175
@str = str
176176

177-
puts("Before flow, str='#{@str.dump}'") if $DEBUG_RDOC
178177
mask_protected_sequences
179178

180179
@attrs = RDoc::Markup::AttrSpan.new @str.length
181180

182-
puts("After protecting, str='#{@str.dump}'") if $DEBUG_RDOC
183-
184181
convert_attrs(@str, @attrs)
185182
convert_html(@str, @attrs)
186183
convert_specials(str, @attrs)
187184

188185
unmask_protected_sequences
189186

190-
puts("After flow, str='#{@str.dump}'") if $DEBUG_RDOC
191-
192187
return split_into_flow
193188
end
194189

@@ -215,8 +210,6 @@ def display_attributes
215210
end
216211

217212
def split_into_flow
218-
display_attributes if $DEBUG_RDOC
219-
220213
res = []
221214
current_attr = 0
222215
str = ""

lib/rdoc/parser/ruby.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,8 +1847,6 @@ def parse_call_parameters(tk)
18471847
nest = 0
18481848

18491849
loop do
1850-
puts("Call param: #{tk}, #{@scanner.continue} " +
1851-
"#{@scanner.lex_state} #{nest}") if $DEBUG_RDOC
18521850
case tk
18531851
when TkSEMICOLON
18541852
break
@@ -1943,9 +1941,6 @@ def parse_constant(container, single, tk, comment)
19431941
end
19441942

19451943
loop do
1946-
puts "Param: %p, %s %s %s" %
1947-
[tk.text, @scanner.continue, @scanner.lex_state, nest] if $DEBUG_RDOC
1948-
19491944
case tk
19501945
when TkSEMICOLON
19511946
break
@@ -2236,8 +2231,6 @@ def parse_method_or_yield_parameters(method = nil,
22362231
nest = 0
22372232

22382233
loop do
2239-
puts "Param: %p, %s %s %s" %
2240-
[tk.text, @scanner.continue, @scanner.lex_state, nest] if $DEBUG_RDOC
22412234
case tk
22422235
when TkSEMICOLON
22432236
break
@@ -2419,22 +2412,16 @@ def parse_statements(container, single = NORMAL, current_method = nil,
24192412

24202413
when TkUNTIL, TkWHILE then
24212414
nest += 1
2422-
puts "Found #{tk.class} in #{container.name}, nest = #{nest}, " +
2423-
"line #{tk.line_no}" if $DEBUG_RDOC
24242415
skip_optional_do_after_expression
24252416

24262417
# 'for' is trickier
24272418
when TkFOR then
24282419
nest += 1
2429-
puts "Found #{tk.class} in #{container.name}, nest = #{nest}, " +
2430-
"line #{tk.line_no}" if $DEBUG_RDOC
24312420
skip_for_variable
24322421
skip_optional_do_after_expression
24332422

24342423
when TkCASE, TkDO, TkIF, TkUNLESS, TkBEGIN then
24352424
nest += 1
2436-
puts "Found #{tk.class} in #{container.name}, nest = #{nest}, " +
2437-
"line #{tk.line_no}" if $DEBUG_RDOC
24382425

24392426
when TkIDENTIFIER then
24402427
if nest == 1 and current_method.nil? then
@@ -2467,8 +2454,6 @@ def parse_statements(container, single = NORMAL, current_method = nil,
24672454

24682455
when TkEND then
24692456
nest -= 1
2470-
puts "Found 'end' in #{container.name}, nest = #{nest}, line #{tk.line_no}" if $DEBUG_RDOC
2471-
puts "Method = #{current_method.name}" if $DEBUG_RDOC and current_method
24722457
if nest == 0 then
24732458
read_documentation_modifiers container, RDoc::CLASS_MODIFIERS
24742459
container.ongoing_visibility = save_visibility
@@ -2659,7 +2644,6 @@ def progress(char)
26592644

26602645
def read_directive(allowed)
26612646
tk = get_tk
2662-
puts "directive: #{tk.text.inspect}" if $DEBUG_RDOC
26632647
result = nil
26642648
if TkCOMMENT === tk
26652649
if tk.text =~ /\s*:?(\w+):\s*(.*)/
@@ -2766,8 +2750,6 @@ def skip_optional_do_after_expression
27662750
@scanner.instance_eval{@continue = false}
27672751

27682752
loop do
2769-
puts("\nWhile: #{tk.text.inspect}, #{@scanner.continue} " \
2770-
"#{@scanner.lex_state} #{nest}") if $DEBUG_RDOC
27712753
case tk
27722754
when TkSEMICOLON
27732755
break

0 commit comments

Comments
 (0)