refactor(irtt-stats): remove redundant process_with_update method
Simplify the StatsCollector API by removing an unnecessary indirection that performed the same logic as the main process method.
This commit is contained in:
1 file changed
-4
@@ -74,10 +74,6 @@ impl StatsCollector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn process(&mut self, event: &ClientEvent) -> EventStatsUpdate {
|
pub fn process(&mut self, event: &ClientEvent) -> EventStatsUpdate {
|
||||||
self.process_with_update(event)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn process_with_update(&mut self, event: &ClientEvent) -> EventStatsUpdate {
|
|
||||||
let Some(window_event) = WindowEvent::from_client_event(event) else {
|
let Some(window_event) = WindowEvent::from_client_event(event) else {
|
||||||
return EventStatsUpdate::default();
|
return EventStatsUpdate::default();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user