Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean a bit.

git-svn-id: http://svn.macosforge.org/repository/ruby/DietRB/trunk@4850 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit d0c7bf6e2965a867e4aa6297cca057e12b77b4cd 1 parent 0d988af
@alloy alloy authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 lib/irb/formatter.rb
View
16 lib/irb/formatter.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.