diff options
author | Stan Lo <stan001212@gmail.com> | 2023-02-18 11:34:23 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-18 11:34:28 +0000 |
commit | cbac0fa4cb43c8ec35683e3ae848d5fb8143c757 (patch) | |
tree | f08f3d97cc7bdaea01550c94c8a84ba94317a931 /lib/irb/ext | |
parent | de7eb5e79ae9ff6425c51eb74d0e9c3f33f9edfe (diff) |
[ruby/irb] Remove unused context argument from Worksapce#evaluate
(https://github.com/ruby/irb/pull/488)
The context argument was introduced in this change:
https://github.com/ruby/irb/commit/6806669d178f90f38b99c144bdfee06bdb93a229#diff-296327851fb7a2c307c2d0693b769f58c01aaf315972f290500d10081ee200a9
perhaps for potential usages. But after that it's never used.
Diffstat (limited to 'lib/irb/ext')
-rw-r--r-- | lib/irb/ext/history.rb | 4 | ||||
-rw-r--r-- | lib/irb/ext/tracer.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb index 59aa9cb0c7..5243504efa 100644 --- a/lib/irb/ext/history.rb +++ b/lib/irb/ext/history.rb @@ -18,7 +18,7 @@ module IRB # :nodoc: if defined?(@eval_history) && @eval_history @eval_history_values.push @line_no, @last_value - @workspace.evaluate self, "__ = IRB.CurrentContext.instance_eval{@eval_history_values}" + @workspace.evaluate "__ = IRB.CurrentContext.instance_eval{@eval_history_values}" end @last_value @@ -49,7 +49,7 @@ module IRB # :nodoc: else @eval_history_values = History.new(no) IRB.conf[:__TMP__EHV__] = @eval_history_values - @workspace.evaluate(self, "__ = IRB.conf[:__TMP__EHV__]") + @workspace.evaluate("__ = IRB.conf[:__TMP__EHV__]") IRB.conf.delete(:__TMP_EHV__) end else diff --git a/lib/irb/ext/tracer.rb b/lib/irb/ext/tracer.rb index 56beb0a1dd..2d20cd3821 100644 --- a/lib/irb/ext/tracer.rb +++ b/lib/irb/ext/tracer.rb @@ -65,12 +65,12 @@ module IRB if context.use_tracer? && file != nil && line != nil Tracer.on begin - __evaluate__(context, statements, file, line) + __evaluate__(statements, file, line) ensure Tracer.off end else - __evaluate__(context, statements, file || __FILE__, line || __LINE__) + __evaluate__(statements, file || __FILE__, line || __LINE__) end end end |