events: Remove unused function

This commit is contained in:
Jonas Platte 2022-09-12 11:51:02 +02:00
parent 674137c41d
commit 9b5b5e7797
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -128,18 +128,6 @@ impl<C: StateEventContent> StateUnsigned<C> {
prev_content, prev_content,
}) })
} }
pub fn _map_prev_content<T>(&self, f: impl FnOnce(&C) -> T) -> StateUnsigned<T>
where
T: StateEventContent,
{
StateUnsigned {
age: self.age,
transaction_id: self.transaction_id.clone(),
prev_content: self.prev_content.as_ref().map(f),
relations: self.relations.clone(),
}
}
} }
impl<C: StateEventContent> Default for StateUnsigned<C> { impl<C: StateEventContent> Default for StateUnsigned<C> {