Skip to content

Commit

Permalink
in_doctype is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Jun 19, 2024
1 parent 7e5e2fc commit f9be6b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/rexml/parsers/treeparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def add_listener( listener )

def parse
tag_stack = []
in_doctype = false
entities = nil
begin
while true
Expand Down Expand Up @@ -58,14 +57,12 @@ def parse
when :processing_instruction
@build_context.add( Instruction.new( event[1], event[2] ) )
when :end_doctype
in_doctype = false
entities.each { |k,v| entities[k] = @build_context.entities[k].value }
@build_context = @build_context.parent
when :start_doctype
doctype = DocType.new( event[1..-1], @build_context )
@build_context = doctype
entities = {}
in_doctype = true
when :attlistdecl
n = AttlistDecl.new( event[1..-1] )
@build_context.add( n )
Expand Down

0 comments on commit f9be6b0

Please sign in to comment.