🔥 remove unused code

This commit is contained in:
huchenlei
2024-02-02 17:06:28 -05:00
parent 79eb31b074
commit 7a3cb322dc

View File

@@ -86,7 +86,6 @@
this.attachEnabledButtonListener();
this.attachControlTypeRadioListener();
// this.attachTabNavChangeObserver();
this.attachImageUploadListener();
this.attachImageStateChangeObserver();
this.attachA1111SendInfoObserver();
@@ -186,22 +185,6 @@
}
}
/**
* Each time the active tab change, all tab nav buttons are cleared and
* regenerated by gradio. So we need to reapply the active states on
* them.
*/
attachTabNavChangeObserver() {
new MutationObserver((mutationsList) => {
for (const mutation of mutationsList) {
if (mutation.type === 'childList') {
this.updateActiveState();
this.updateActiveControlType();
}
}
}).observe(this.tabNav, { childList: true });
}
attachImageUploadListener() {
// Automatically check `enable` checkbox when image is uploaded.
this.inputImage.addEventListener('change', (event) => {