File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,8 @@ pub struct Savepoint {
132
132
pub index : BTreeMap < u32 , u32 > ,
133
133
}
134
134
135
- pub static SAVEPOINT_COUNTER : AtomicU64 = AtomicU64 :: new ( 0 ) ;
136
-
137
135
impl Savepoint {
138
136
pub fn new ( next_offset : u32 , next_frame_no : u64 , current_checksum : u32 ) -> Self {
139
- SAVEPOINT_COUNTER . fetch_add ( 1 , std:: sync:: atomic:: Ordering :: SeqCst ) ;
140
137
Self {
141
138
next_offset,
142
139
next_frame_no,
@@ -146,12 +143,6 @@ impl Savepoint {
146
143
}
147
144
}
148
145
149
- impl Drop for Savepoint {
150
- fn drop ( & mut self ) {
151
- SAVEPOINT_COUNTER . fetch_sub ( 1 , std:: sync:: atomic:: Ordering :: SeqCst ) ;
152
- }
153
- }
154
-
155
146
/// The savepoints must be passed from most recent to oldest
156
147
pub ( crate ) fn merge_savepoints < ' a > (
157
148
savepoints : impl Iterator < Item = & ' a BTreeMap < u32 , u32 > > ,
You can’t perform that action at this time.
0 commit comments