remove commented-out code

This commit is contained in:
Charles Hall 2024-05-15 15:07:26 -07:00
parent d3b7eecaed
commit 0915aba44c
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
10 changed files with 0 additions and 81 deletions

View file

@ -327,13 +327,6 @@ impl PduEvent {
pdu_json.remove("event_id");
// TODO: another option would be to convert it to a canonical string to validate size
// and return a Result<Raw<...>>
// serde_json::from_str::<Raw<_>>(
// ruma::serde::to_canonical_json_string(pdu_json).expect("CanonicalJson is valid serde_json::Value"),
// )
// .expect("Raw::from_value always works")
to_raw_value(&pdu_json).expect("CanonicalJson is valid serde_json::Value")
}