@@ -3295,7 +3295,6 @@ pub fn convert_to_qn(
3295
3295
) -> Result < Entity > {
3296
3296
let pool = rayon:: ThreadPoolBuilder :: new ( ) . build ( ) ?;
3297
3297
pool. install ( || {
3298
- log:: trace!( "Checking duplicate IDs" ) ;
3299
3298
{
3300
3299
let mut unique = blueprint. sub_entities . to_owned ( ) ;
3301
3300
unique. dedup_by_key ( |x| x. entity_id ) ;
@@ -3305,7 +3304,6 @@ pub fn convert_to_qn(
3305
3304
}
3306
3305
}
3307
3306
3308
- log:: trace!( "Initial entity conversion" ) ;
3309
3307
let mut entity = Entity {
3310
3308
factory_hash : factory_meta. hash_value . to_owned ( ) ,
3311
3309
blueprint_hash : blueprint_meta. hash_value . to_owned ( ) ,
@@ -3612,7 +3610,6 @@ pub fn convert_to_qn(
3612
3610
comments : vec ! [ ]
3613
3611
} ;
3614
3612
3615
- log:: trace!( "Extra factory depends" ) ;
3616
3613
{
3617
3614
let depends = get_factory_dependencies ( & entity) ?;
3618
3615
@@ -3646,7 +3643,6 @@ pub fn convert_to_qn(
3646
3643
. collect ( ) ;
3647
3644
}
3648
3645
3649
- log:: trace!( "Extra blueprint depends" ) ;
3650
3646
{
3651
3647
let depends = get_blueprint_dependencies ( & entity) ;
3652
3648
@@ -3680,7 +3676,6 @@ pub fn convert_to_qn(
3680
3676
. collect ( ) ;
3681
3677
}
3682
3678
3683
- log:: trace!( "Pin connections" ) ;
3684
3679
for pin in & blueprint. pin_connections {
3685
3680
let relevant_sub_entity = entity
3686
3681
. entities
@@ -3733,7 +3728,6 @@ pub fn convert_to_qn(
3733
3728
} ) ;
3734
3729
}
3735
3730
3736
- log:: trace!( "Pin connection overrides" ) ;
3737
3731
for pin_connection_override in blueprint
3738
3732
. pin_connection_overrides
3739
3733
. iter ( )
@@ -3787,7 +3781,6 @@ pub fn convert_to_qn(
3787
3781
}
3788
3782
3789
3783
// cheeky bit of code duplication right here
3790
- log:: trace!( "Input pin forwardings" ) ;
3791
3784
for forwarding in & blueprint. input_pin_forwardings {
3792
3785
let relevant_sub_entity = entity
3793
3786
. entities
@@ -3840,7 +3833,6 @@ pub fn convert_to_qn(
3840
3833
} ) ;
3841
3834
}
3842
3835
3843
- log:: trace!( "Output pin forwardings" ) ;
3844
3836
for forwarding in & blueprint. output_pin_forwardings {
3845
3837
let relevant_sub_entity = entity
3846
3838
. entities
@@ -3893,7 +3885,6 @@ pub fn convert_to_qn(
3893
3885
} ) ;
3894
3886
}
3895
3887
3896
- log:: trace!( "Subsets" ) ;
3897
3888
for sub_entity in & blueprint. sub_entities {
3898
3889
for ( subset, data) in & sub_entity. entity_subsets {
3899
3890
for subset_entity in & data. entities {
@@ -3924,7 +3915,6 @@ pub fn convert_to_qn(
3924
3915
}
3925
3916
}
3926
3917
3927
- log:: trace!( "Property overrides" ) ;
3928
3918
let mut pass1: Vec < PropertyOverride > = Vec :: default ( ) ;
3929
3919
3930
3920
for property_override in & factory. property_overrides {
@@ -4007,7 +3997,6 @@ pub fn convert_to_rt(
4007
3997
. map ( |( x, y) | -> Result < _ > { Ok ( ( normalise_entity_id ( y) ?, x) ) } )
4008
3998
. collect :: < Result < _ > > ( ) ?;
4009
3999
4010
- log:: trace!( "Initialisation" ) ;
4011
4000
let mut factory = resourcelib:: EntityFactory {
4012
4001
sub_type : match entity. sub_type {
4013
4002
SubType :: Brick => 2 ,
@@ -4281,7 +4270,6 @@ pub fn convert_to_rt(
4281
4270
. map ( |( x, y) | ( y. hash . to_owned ( ) , x. to_owned ( ) ) )
4282
4271
. collect ( ) ;
4283
4272
4284
- log:: trace!( "Property overrides" ) ;
4285
4273
factory. property_overrides = entity
4286
4274
. property_overrides
4287
4275
. par_iter ( )
@@ -4332,7 +4320,6 @@ pub fn convert_to_rt(
4332
4320
} )
4333
4321
. collect :: < Result < _ > > ( ) ?;
4334
4322
4335
- log:: trace!( "Factory subentities" ) ;
4336
4323
factory. sub_entities = entity
4337
4324
. entities
4338
4325
. iter ( )
@@ -4415,7 +4402,6 @@ pub fn convert_to_rt(
4415
4402
} )
4416
4403
. collect :: < Result < _ > > ( ) ?;
4417
4404
4418
- log:: trace!( "Blueprint subentities" ) ;
4419
4405
blueprint. sub_entities = entity
4420
4406
. entities
4421
4407
. iter ( )
@@ -4537,7 +4523,6 @@ pub fn convert_to_rt(
4537
4523
} )
4538
4524
. collect :: < Result < _ > > ( ) ?;
4539
4525
4540
- log:: trace!( "Subsets" ) ;
4541
4526
for ( entity_index, ( _, sub_entity) ) in entity. entities . iter ( ) . enumerate ( ) {
4542
4527
if sub_entity. subsets . is_some ( ) {
4543
4528
for ( subset, ents) in sub_entity. subsets . as_ref ( ) . ctx ?. iter ( ) {
@@ -4567,7 +4552,6 @@ pub fn convert_to_rt(
4567
4552
}
4568
4553
}
4569
4554
4570
- log:: trace!( "Pin connections" ) ;
4571
4555
blueprint. pin_connections = entity
4572
4556
. entities
4573
4557
. iter ( )
@@ -4597,7 +4581,6 @@ pub fn convert_to_rt(
4597
4581
. collect ( ) ;
4598
4582
4599
4583
// slightly less code duplication than there used to be
4600
- log:: trace!( "Input pin forwardings" ) ;
4601
4584
blueprint. input_pin_forwardings = entity
4602
4585
. entities
4603
4586
. iter ( )
@@ -4626,7 +4609,6 @@ pub fn convert_to_rt(
4626
4609
. flatten ( )
4627
4610
. collect ( ) ;
4628
4611
4629
- log:: trace!( "Output pin forwardings" ) ;
4630
4612
blueprint. output_pin_forwardings = entity
4631
4613
. entities
4632
4614
. iter ( )
0 commit comments