@@ -10,7 +10,6 @@ use std::{fmt, iter, slice};
10
10
use itertools:: Either ;
11
11
use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder } ;
12
12
13
- use super :: old_dense_bit_set:: DenseBitSet as OldDenseBitSet ;
14
13
use super :: {
15
14
BitRelations , CHUNK_WORDS , Chunk , ChunkedBitSet , WORD_BITS , Word , word_index_and_mask,
16
15
} ;
@@ -781,7 +780,6 @@ impl<T: Idx> BitRelations<ChunkedBitSet<T>> for DenseBitSet<T> {
781
780
impl < S : Encoder , T > Encodable < S > for DenseBitSet < T > {
782
781
#[ inline( never) ] // FIXME: For profiling purposes
783
782
fn encode ( & self , s : & mut S ) {
784
- /* FIXME: This is new incompatable encoding
785
783
// The encoding is as follows:
786
784
//
787
785
// The `inline` and `empty_unallocated` variants are encoded as a single `Word`. Here, we
@@ -810,21 +808,12 @@ impl<S: Encoder, T> Encodable<S> for DenseBitSet<T> {
810
808
debug_assert ! ( word >> WORD_BITS - 2 != 0 , "the 2 most significant bits must not be 0" ) ;
811
809
word. encode ( s) ;
812
810
}
813
- */
814
-
815
- // Old compatable encoding.
816
- let mut old_set = OldDenseBitSet :: < usize > :: new_empty ( self . capacity ( ) ) ;
817
- for x in self . iter_usizes ( ) {
818
- old_set. insert ( x) ;
819
- }
820
- old_set. encode ( s) ;
821
811
}
822
812
}
823
813
824
814
impl < D : Decoder , T > Decodable < D > for DenseBitSet < T > {
825
815
#[ inline( never) ] // FIXME: For profiling purposes
826
816
fn decode ( d : & mut D ) -> Self {
827
- /* FIXME: This is new incompatable decoding.
828
817
// First we read one `Word` and check the variant.
829
818
let word = Word :: decode ( d) ;
830
819
if word >> WORD_BITS - 2 == 0x0 {
@@ -853,15 +842,6 @@ impl<D: Decoder, T> Decodable<D> for DenseBitSet<T> {
853
842
// and the union is `repr(C)`.
854
843
Self { inline : word }
855
844
}
856
- */
857
-
858
- // Old compatable decoding.
859
- let old_set = OldDenseBitSet :: < usize > :: decode ( d) ;
860
- let mut set = Self :: new_empty ( old_set. domain_size ( ) ) ;
861
- for x in old_set. iter ( ) {
862
- set. insert_usize ( x) ;
863
- }
864
- set
865
845
}
866
846
}
867
847
0 commit comments