Skip to content

Commit

Permalink
Clean a bit.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/DietRB/trunk@4850 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
alloy committed Oct 31, 2010
1 parent 0d988af commit d0c7bf6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/irb/formatter.rb
Expand Up @@ -65,22 +65,6 @@ def reindent_last_line_in_source(source)
source.buffer[-1] = new_line
end

# Returns +true+ if adding the +line+ to the context’s source decreases the indentation level.
def add_input_to_context(context, line)
source = context.source
level_before = source.level
source << line
if source.level < level_before
source.buffer[-1] = indentation(context) + line
true
end
end

def reindent_last_input(context)
line = context.source.buffer.last
indentation(context, -1) + line
end

def result(object)
"#{RESULT_PREFIX} #{inspect_object(object)}"
end
Expand Down

0 comments on commit d0c7bf6

Please sign in to comment.