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

View File

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