From e846e0cb92a857e847d3662ab4fbede8db5759b6 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Sat, 30 Nov 2024 13:18:09 +0800 Subject: [PATCH] cleanup. --- lib/src/context/participant_context.dart | 8 -------- lib/src/context/track_reference_context.dart | 4 ---- 2 files changed, 12 deletions(-) diff --git a/lib/src/context/participant_context.dart b/lib/src/context/participant_context.dart index 84c8aa3..85581cb 100644 --- a/lib/src/context/participant_context.dart +++ b/lib/src/context/participant_context.dart @@ -98,14 +98,6 @@ class ParticipantContext extends ChangeNotifier { notifyListeners(); } }) - ..on((event) { - if (event.participant.identity == identity && - event.publication.kind == TrackType.AUDIO) { - Debug.event( - 'TrackContext: TrackSubscribedEvent for ${_participant.sid}'); - notifyListeners(); - } - }) ..on((event) { if (event.participant.identity == identity && event.publication.kind == TrackType.AUDIO) { diff --git a/lib/src/context/track_reference_context.dart b/lib/src/context/track_reference_context.dart index 5152b46..87e9af8 100644 --- a/lib/src/context/track_reference_context.dart +++ b/lib/src/context/track_reference_context.dart @@ -104,10 +104,6 @@ class TrackReferenceContext extends ChangeNotifier { bool get showStatistics => _showStatistics; - AudioVisualizerEvent? _audioVisualizerEvent; - - AudioVisualizerEvent? get audioVisualizerEvent => _audioVisualizerEvent; - set showStatistics(bool value) { if (_showStatistics != value) { _showStatistics = value;