@@ -182,15 +182,13 @@ impl SerializedDepGraph {
182
182
pub fn decode < D : Deps > ( d : & mut MemDecoder < ' _ > ) -> Arc < SerializedDepGraph > {
183
183
// The last 16 bytes are the node count and edge count.
184
184
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| {
187
187
debug ! ( "position: {:?}" , d. position( ) ) ;
188
188
let node_count = IntEncodedWithFixedSize :: decode ( d) . 0 as usize ;
189
189
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)
192
191
} ) ;
193
- assert_eq ! ( d. len( ) , graph_size) ;
194
192
debug ! ( "position: {:?}" , d. position( ) ) ;
195
193
196
194
debug ! ( ?node_count, ?edge_count) ;
@@ -606,8 +604,6 @@ impl<D: Deps> EncoderState<D> {
606
604
debug ! ( "position: {:?}" , encoder. position( ) ) ;
607
605
IntEncodedWithFixedSize ( node_count) . encode ( & mut encoder) ;
608
606
IntEncodedWithFixedSize ( edge_count) . encode ( & mut encoder) ;
609
- let graph_size = encoder. position ( ) + IntEncodedWithFixedSize :: ENCODED_SIZE ;
610
- IntEncodedWithFixedSize ( graph_size as u64 ) . encode ( & mut encoder) ;
611
607
debug ! ( "position: {:?}" , encoder. position( ) ) ;
612
608
// Drop the encoder so that nothing is written after the counts.
613
609
let result = encoder. finish ( ) ;
0 commit comments