File tree Expand file tree Collapse file tree
src/vs/base/parts/tree/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments