Permalink
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...
1 parent 0d988af commit d0c7bf6e2965a867e4aa6297cca057e12b77b4cd @alloy alloy committed Oct 31, 2010
Showing with 0 additions and 16 deletions.
  1. +0 −16 lib/irb/formatter.rb
View
@@ -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

0 comments on commit d0c7bf6

Please sign in to comment.