File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
src/main/ruby/truffleruby/core/truffle Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ Performance:
89
89
Changes:
90
90
91
91
* Remove ` Truffle::Interop.deproxy ` as it is unsafe and not useful (@eregon ).
92
+ * Removed ` Truffle::Interop.unbox_without_conversion ` (should not be needed by user code) (@eregon ).
92
93
93
94
# 22.3.0
94
95
Original file line number Diff line number Diff line change @@ -289,18 +289,6 @@ def self.unbox(object)
289
289
raise ArgumentError , "not boxed: #{ object } "
290
290
end
291
291
292
- def self . unbox_without_conversion ( object )
293
- return as_boolean object if boolean? object
294
-
295
- if number? ( object )
296
- return as_int object if fits_in_int? object
297
- return as_long object if fits_in_long? object
298
- return as_double object if fits_in_double? object
299
- end
300
-
301
- raise ArgumentError , "not boxed: #{ object . inspect } "
302
- end
303
-
304
292
def self . to_java_map ( hash )
305
293
map = ::Java . type ( 'java.util.HashMap' ) . new
306
294
hash . each do |key , value |
You can’t perform that action at this time.
0 commit comments