Skip to content

Commit 580acc5

Browse files
committed
remove unused code
1 parent b0eaf58 commit 580acc5

3 files changed

Lines changed: 0 additions & 27 deletions

File tree

src/vs/base/parts/tree/browser/tree.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ export interface ITree {
7878
*/
7979
refresh(element?: any, recursive?: boolean): Promise<any>;
8080

81-
/**
82-
* Updates an element's width.
83-
*/
84-
updateWidth(element: any): void;
85-
8681
/**
8782
* Expands an element.
8883
* The returned promise returns a boolean for whether the element was expanded or not.

src/vs/base/parts/tree/browser/treeImpl.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ export class Tree implements _.ITree {
161161
return this.model.refresh(element, recursive);
162162
}
163163

164-
public updateWidth(element: any): void {
165-
const item = this.model.getItem(element);
166-
if (item) {
167-
this.view.updateWidth(item);
168-
}
169-
}
170-
171164
public expand(element: any): Promise<any> {
172165
return this.model.expand(element);
173166
}

src/vs/base/parts/tree/browser/treeView.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,21 +1043,6 @@ export class TreeView extends HeightMap {
10431043
}
10441044
}
10451045

1046-
public updateWidth(item: Model.Item): void {
1047-
if (!item || !item.isVisible()) {
1048-
return;
1049-
}
1050-
1051-
const viewItem = this.items[item.id];
1052-
1053-
if (!viewItem) {
1054-
return;
1055-
}
1056-
1057-
viewItem.updateWidth();
1058-
this.updateScrollWidth();
1059-
}
1060-
10611046
public getRelativeTop(item: Model.Item): number {
10621047
if (item && item.isVisible()) {
10631048
let viewItem = this.items[item.id];

0 commit comments

Comments
 (0)