mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
remove unused code,https://github.com/microsoft/vscode/issues/103454
This commit is contained in:
parent
d21afdfdc1
commit
1a130d2c17
|
@ -34,26 +34,6 @@ export function isInDOM(node: Node | null): boolean {
|
|||
return false;
|
||||
}
|
||||
|
||||
interface IDomClassList {
|
||||
addClass(node: HTMLElement | SVGElement, className: string): void;
|
||||
toggleClass(node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean): void;
|
||||
}
|
||||
|
||||
const _classList: IDomClassList = new class implements IDomClassList {
|
||||
|
||||
addClass(node: HTMLElement, className: string): void {
|
||||
if (className && node.classList) {
|
||||
node.classList.add(className);
|
||||
}
|
||||
}
|
||||
|
||||
toggleClass(node: HTMLElement, className: string, shouldHaveIt?: boolean): void {
|
||||
if (node.classList) {
|
||||
node.classList.toggle(className, shouldHaveIt);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class DomListener implements IDisposable {
|
||||
|
||||
private _handler: (e: any) => void;
|
||||
|
|
Loading…
Reference in a new issue