[前][次][番号順一覧][スレッド一覧]

ruby-changes:55827

From: Takashi <ko1@a...>
Date: Sat, 25 May 2019 16:41:07 +0900 (JST)
Subject: [ruby-changes:55827] Takashi Kokubun: 061c781a09 (trunk): Drop method obsoleted by b83119be9e9a8611063142541993e4823a025622

https://git.ruby-lang.org/ruby.git/commit/?id=061c781a09

From 061c781a09de68c7e34e45732081aac337c4facc Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sat, 25 May 2019 00:38:18 -0700
Subject: Drop method obsoleted by b83119be9e9a8611063142541993e4823a025622

We might need to do the same thing in IRB::Color now, but I'm not doing
that as I assume ANSI escape sequence does not come from a user input
though Reline.

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 6d6df10..38a06a6 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -433,17 +433,6 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L433
     @config.editing_mode
   end
 
-  private def escaped_print(str)
-    @output.print str.chars.map { |gr|
-      escaped = Reline::Unicode::EscapedPairs[gr.ord]
-      if escaped
-        escaped
-      else
-        gr
-      end
-    }.join
-  end
-
   private def menu(target, list)
     @menu_info = MenuInfo.new(target, list)
   end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]