Skip to content

Commit

Permalink
refactor: ⚰️ remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 9, 2021
1 parent bf14040 commit 7a93855
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions src/vs/base/browser/ui/sash/sash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export class Sash extends Disposable {

private el: HTMLElement;
private layoutProvider: ISashLayoutProvider;
private hidden: boolean;
private orientation!: Orientation;
private size: number;
private hoverDelay = globalHoverDelay;
Expand Down Expand Up @@ -317,7 +316,6 @@ export class Sash extends Disposable {

this._register(onDidChangeHoverDelay.event(delay => this.hoverDelay = delay));

this.hidden = false;
this.layoutProvider = layoutProvider;

this.orthogonalStartSash = options.orthogonalStartSash;
Expand Down Expand Up @@ -504,22 +502,6 @@ export class Sash extends Disposable {
}
}

show(): void {
this.hidden = false;
this.el.style.removeProperty('display');
this.el.setAttribute('aria-hidden', 'false');
}

hide(): void {
this.hidden = true;
this.el.style.display = 'none';
this.el.setAttribute('aria-hidden', 'true');
}

isHidden(): boolean {
return this.hidden;
}

private getOrthogonalSash(e: PointerEvent): Sash | undefined {
if (!e.target || !(e.target instanceof HTMLElement)) {
return undefined;
Expand Down
1 change: 0 additions & 1 deletion src/vs/editor/contrib/zoneWidget/zoneWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ export abstract class ZoneWidget implements IHorizontalSashLayoutProvider {
this._resizeSash = this._disposables.add(new Sash(this.domNode, this, { orientation: Orientation.HORIZONTAL }));

if (!this.options.isResizeable) {
this._resizeSash.hide();
this._resizeSash.state = SashState.Disabled;
}

Expand Down

0 comments on commit 7a93855

Please sign in to comment.