mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-25 15:51:33 +00:00
refactor: remove dead code
This commit is contained in:
@@ -95,15 +95,6 @@ export class WebEventEmitter implements VideoPlayerEventEmitterBase {
|
||||
this._mediaCleanup = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-attach media listeners. Called when the video element might have changed.
|
||||
* @internal
|
||||
*/
|
||||
reattach() {
|
||||
this._mediaCleanup?.();
|
||||
this._attachMediaListeners();
|
||||
}
|
||||
|
||||
private _attachMediaListeners() {
|
||||
const video = this.getMedia();
|
||||
if (!video) return;
|
||||
|
||||
Reference in New Issue
Block a user