remove aard::halt() (is duplicate of aard::stop() anyway)

This commit is contained in:
Tamius Han 2023-04-16 01:55:11 +02:00
parent 0778f07922
commit 977d103c3a
2 changed files with 4 additions and 9 deletions

View File

@ -269,7 +269,7 @@ class ArDetector {
destroy(){
this.logger.log('info', 'init', `%c[ArDetect::destroy] <@${this.arid}> Destroying aard.`, _ard_console_stop);
// this.debugCanvas.destroy();
this.halt();
this.stop();
}
//#endregion lifecycle
@ -313,11 +313,6 @@ class ArDetector {
this.stop();
}
halt(){
this.logger.log('info', 'debug', `"%c[ArDetect::stop] <@${this.arid}> Halting automatic aspect ratio detection`, _ard_console_stop);
this.stop();
}
setManualTick(manualTick) {
this.manualTickEnabled = manualTick;
}

View File

@ -345,7 +345,7 @@ class VideoData {
this.destroyed = true;
this.eventBus?.unsetUpstreamBus();
try {
this.arDetector.halt();
this.arDetector.stop();
this.arDetector.destroy();
} catch (e) {}
this.arDetector = undefined;
@ -389,7 +389,7 @@ class VideoData {
disable(options?: {fromPlayer?: boolean}) {
this.enabled = false;
this.stopArDetection();
this.arDetector?.stop();
this.video.classList.remove(this.baseCssName);
this.video.classList.remove(this.userCssClassName);
@ -677,7 +677,7 @@ class VideoData {
stopArDetection() {
if (this.arDetector) {
this.arDetector.halt();
this.arDetector.stop();
}
}
//#endregion