File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
nova_vm/src/ecmascript/builtins/temporal Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ impl TemporalDuration<'_> {
3636 pub ( crate ) const fn get_index ( self ) -> usize {
3737 self . 0 . into_index ( )
3838 }
39- pub ( crate ) fn inner_duration ( self , agent : & Agent ) -> temporal_rs:: Duration {
40- agent[ self ] . duration
41- }
39+ // pub(crate) fn inner_duration(self, agent: &Agent) -> temporal_rs::Duration {
40+ // agent[self].duration
41+ // }
4242}
4343
4444bindable_handle ! ( TemporalDuration ) ;
@@ -450,7 +450,7 @@ pub(crate) fn to_temporal_partial_duration_record<'gc>(
450450/// It returns a new Temporal.Duration instance that is the
451451/// negation of duration.
452452pub ( crate ) fn create_negated_temporal_duration < ' gc > (
453- agent : & mut Agent ,
453+ _agent : & mut Agent ,
454454 item : temporal_rs:: Duration ,
455455 mut _gc : GcScope < ' gc , ' _ > ,
456456) -> JsResult < ' gc , temporal_rs:: Duration > {
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl TemporalInstantPrototype {
419419 let options = args. get ( 0 ) . bind ( gc. nogc ( ) ) ;
420420 let instant = this_value. bind ( gc. nogc ( ) ) ;
421421 // 2. Perform ? RequireInternalSlot(instant, [[InitializedTemporalInstant]]).
422- let instant = require_internal_slot_temporal_instant ( agent, instant. unbind ( ) , gc. nogc ( ) )
422+ let _instant = require_internal_slot_temporal_instant ( agent, instant. unbind ( ) , gc. nogc ( ) )
423423 . unbind ( ) ?
424424 . bind ( gc. nogc ( ) ) ;
425425 // 3. Let resolvedOptions be ? GetOptionsObject(options).
@@ -428,15 +428,15 @@ impl TemporalInstantPrototype {
428428 . scope ( agent, gc. nogc ( ) ) ;
429429 // 4. NOTE: The following steps read options and perform independent validation in alphabetical order (GetTemporalFractionalSecondDigitsOption reads "fractionalSecondDigits" and GetRoundingModeOption reads "roundingMode").
430430 // 5. Let digits be ? GetTemporalFractionalSecondDigitsOption(resolvedOptions).
431- let digits = get_temporal_fractional_second_digits_option (
431+ let _digits = get_temporal_fractional_second_digits_option (
432432 agent,
433433 resolved_options. get ( agent) ,
434434 gc. reborrow ( ) ,
435435 )
436436 . unbind ( ) ?
437437 . bind ( gc. nogc ( ) ) ;
438438 // 6. Let roundingMode be ? GetRoundingModeOption(resolvedOptions, trunc).
439- let rounding_mode = get_rounding_mode_option (
439+ let _rounding_mode = get_rounding_mode_option (
440440 agent,
441441 resolved_options. get ( agent) ,
442442 RoundingMode :: Trunc ,
You can’t perform that action at this time.
0 commit comments