From 76515504d552d3677f81539c29ed5f558f0dc4f0 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 9 Aug 2014 02:02:58 +0000 Subject: * lib/irb.rb: removed commented-out code. * lib/irb/**/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/ext/save-history.rb | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/irb/ext/save-history.rb') diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index d2ea37f950..b4c72a0339 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -59,23 +59,7 @@ module IRB module HistorySavingAbility # :nodoc: include Readline -# def HistorySavingAbility.create_finalizer -# proc do -# if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0 -# if hf = IRB.conf[:HISTORY_FILE] -# file = File.expand_path(hf) -# end -# file = IRB.rc_file("_history") unless file -# open(file, 'w' ) do |f| -# hist = HISTORY.to_a -# f.puts(hist[-num..-1] || hist) -# end -# end -# end -# end - def HistorySavingAbility.extended(obj) -# ObjectSpace.define_finalizer(obj, HistorySavingAbility.create_finalizer) IRB.conf[:AT_EXIT].push proc{obj.save_history} obj.load_history obj -- cgit v1.2.3