Skip to content

Commit

Permalink
Update src/core/serialization/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Théophile BRÉZOT <[email protected]>
  • Loading branch information
phochard and tbrezot authored Nov 4, 2024
1 parent f7fb1f6 commit 33e6ee1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/core/serialization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,20 +543,6 @@ impl Serializable for Policy {
let bytes = <Vec<u8>>::try_from(self).unwrap();
bytes.len() + to_leb128_len(bytes.len())

// 1 + to_leb128_len(self.last_attribute_value as usize)
// + self
// .dimensions
// .clone()
// .iter()
// .map(|(s, dim)| {
// to_leb128_len(s.len())
// + s.len()
// + dim
// .attributes()
// .map(|d| to_leb128_len(d.id as usize) + 2)
// .sum::<usize>()
// })
// .sum::<usize>()
}

fn write(
Expand Down

0 comments on commit 33e6ee1

Please sign in to comment.