@@ -182,15 +182,13 @@ impl SerializedDepGraph {
182182 pub fn decode < D : Deps > ( d : & mut MemDecoder < ' _ > ) -> Arc < SerializedDepGraph > {
183183 // The last 16 bytes are the node count and edge count.
184184 debug ! ( "position: {:?}" , d. position( ) ) ;
185- let ( node_count, edge_count, graph_size ) =
186- d. with_position ( d. len ( ) - 3 * IntEncodedWithFixedSize :: ENCODED_SIZE , |d| {
185+ let ( node_count, edge_count) =
186+ d. with_position ( d. len ( ) - 2 * IntEncodedWithFixedSize :: ENCODED_SIZE , |d| {
187187 debug ! ( "position: {:?}" , d. position( ) ) ;
188188 let node_count = IntEncodedWithFixedSize :: decode ( d) . 0 as usize ;
189189 let edge_count = IntEncodedWithFixedSize :: decode ( d) . 0 as usize ;
190- let graph_size = IntEncodedWithFixedSize :: decode ( d) . 0 as usize ;
191- ( node_count, edge_count, graph_size)
190+ ( node_count, edge_count)
192191 } ) ;
193- assert_eq ! ( d. len( ) , graph_size) ;
194192 debug ! ( "position: {:?}" , d. position( ) ) ;
195193
196194 debug ! ( ?node_count, ?edge_count) ;
@@ -606,8 +604,6 @@ impl<D: Deps> EncoderState<D> {
606604 debug ! ( "position: {:?}" , encoder. position( ) ) ;
607605 IntEncodedWithFixedSize ( node_count) . encode ( & mut encoder) ;
608606 IntEncodedWithFixedSize ( edge_count) . encode ( & mut encoder) ;
609- let graph_size = encoder. position ( ) + IntEncodedWithFixedSize :: ENCODED_SIZE ;
610- IntEncodedWithFixedSize ( graph_size as u64 ) . encode ( & mut encoder) ;
611607 debug ! ( "position: {:?}" , encoder. position( ) ) ;
612608 // Drop the encoder so that nothing is written after the counts.
613609 let result = encoder. finish ( ) ;
0 commit comments