events: Remove unused function
This commit is contained in:
parent
674137c41d
commit
9b5b5e7797
@ -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> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user