@@ -399,17 +399,6 @@ impl BrowserChunkingContext {
399
399
pub fn minify_type ( & self ) -> Vc < MinifyType > {
400
400
self . minify_type . cell ( )
401
401
}
402
-
403
- /// Returns the minify type.
404
- #[ turbo_tasks:: function]
405
- fn chunk_path_info ( & self ) -> Vc < ChunkPathInfo > {
406
- ChunkPathInfo {
407
- root_path : self . root_path . clone ( ) ,
408
- chunk_root_path : self . chunk_root_path . clone ( ) ,
409
- content_hashing : self . content_hashing ,
410
- }
411
- . cell ( )
412
- }
413
402
}
414
403
415
404
#[ turbo_tasks:: value_impl]
@@ -450,7 +439,7 @@ impl ChunkingContext for BrowserChunkingContext {
450
439
451
440
#[ turbo_tasks:: function]
452
441
async fn chunk_path (
453
- self : Vc < Self > ,
442
+ & self ,
454
443
asset : Option < Vc < Box < dyn Asset > > > ,
455
444
ident : Vc < AssetIdent > ,
456
445
prefix : Option < RcStr > ,
@@ -460,15 +449,11 @@ impl ChunkingContext for BrowserChunkingContext {
460
449
extension. starts_with( "." ) ,
461
450
"`extension` should include the leading '.', got '{extension}'"
462
451
) ;
463
- let ChunkPathInfo {
464
- chunk_root_path,
465
- content_hashing,
466
- root_path,
467
- } = & * self . chunk_path_info ( ) . await ?;
468
- let name = match * content_hashing {
452
+ let root_path = self . chunk_root_path . clone ( ) ;
453
+ let name = match self . content_hashing {
469
454
None => {
470
455
ident
471
- . output_name ( root_path. clone ( ) , prefix, extension)
456
+ . output_name ( self . root_path . clone ( ) , prefix, extension)
472
457
. owned ( )
473
458
. await ?
474
459
}
@@ -493,7 +478,7 @@ impl ChunkingContext for BrowserChunkingContext {
493
478
}
494
479
}
495
480
} ;
496
- Ok ( chunk_root_path . join ( & name) ?. cell ( ) )
481
+ Ok ( root_path . join ( & name) ?. cell ( ) )
497
482
}
498
483
499
484
#[ turbo_tasks:: function]
@@ -813,10 +798,3 @@ impl ChunkingContext for BrowserChunkingContext {
813
798
Ok ( Vc :: cell ( self . await ?. debug_ids ) )
814
799
}
815
800
}
816
-
817
- #[ turbo_tasks:: value]
818
- struct ChunkPathInfo {
819
- root_path : FileSystemPath ,
820
- chunk_root_path : FileSystemPath ,
821
- content_hashing : Option < ContentHashing > ,
822
- }
0 commit comments