Skip to content

Commit

Permalink
Remove optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 18, 2012
1 parent 33e2d61 commit c8e222b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/compiler/generator.rb
Expand Up @@ -254,7 +254,7 @@ def initialize
@detected_args = 0
@detected_locals = 0

@states = []
@state = []
@generators = []

@current_line = nil
Expand Down Expand Up @@ -338,15 +338,15 @@ def use_detected
# Commands (these don't generate data in the stream)

def state
@states.last
@state.last
end

def push_state(scope)
@states << AST::State.new(scope)
@state << AST::State.new(scope)
end

def pop_state
@states.pop
@state.pop
end

def push_modifiers
Expand Down

0 comments on commit c8e222b

Please sign in to comment.