chore: remove method

This commit is contained in:
mathuo 2024-08-15 21:38:52 +01:00
parent 6c39c448bb
commit 77bccb3f69
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
7 changed files with 1 additions and 23 deletions

View File

@ -14,7 +14,6 @@ describe('watermark', () => {
const group = jest.fn() as any;
cut.init({ containerApi: api });
cut.updateParentGroup(group, true);
const closeEl = cut.element.querySelector('.close-action')!;

View File

@ -116,10 +116,6 @@ class Watermark implements IWatermarkRenderer {
return {};
}
updateParentGroup() {
//
}
dispose() {
//
}

View File

@ -78,10 +78,7 @@ export class Watermark
this.render();
}
updateParentGroup(group: DockviewGroupPanel, _visible: boolean): void {
this._group = group;
this.render();
}
dispose(): void {
super.dispose();

View File

@ -972,8 +972,6 @@ export class DockviewGroupPanelModel
this.tabsContainer.hide();
this.contentContainer.element.appendChild(this.watermark.element);
this.watermark.updateParentGroup(this.groupPanel, true);
}
if (!this.isEmpty && this.watermark) {
this.watermark.element.remove();

View File

@ -32,7 +32,6 @@ export interface IWatermarkRenderer
extends Optional<Omit<IPanel, 'id' | 'init'>, RendererMethodOptionalList> {
readonly element: HTMLElement;
init: (params: WatermarkRendererInitParameters) => void;
updateParentGroup(group: DockviewGroupPanel, visible: boolean): void;
}
export interface ITabRenderer

View File

@ -183,10 +183,6 @@ export class VueWatermarkRenderer
);
}
updateParentGroup(group: DockviewGroupPanel, visible: boolean): void {
// TODO: make optional on interface
}
update(event: PanelUpdateEvent<Parameters>): void {
// noop
}

View File

@ -57,13 +57,6 @@ export class ReactWatermarkPart implements IWatermarkRenderer {
// noop - retrieval from api
}
updateParentGroup(
_group: DockviewGroupPanel,
_isPanelVisible: boolean
): void {
// noop
}
dispose(): void {
this.part?.dispose();
}