File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,6 @@ export class BranchMenu extends React.Component<
186186 * Adds model listeners.
187187 */
188188 private _addListeners ( ) : void {
189- // When the repository changes, we're likely to have a new set of branches:
190- this . props . model . repositoryChanged . connect ( this . _syncState , this ) ;
191-
192189 // When the HEAD changes, decent probability that we've switched branches:
193190 this . props . model . headChanged . connect ( this . _syncState , this ) ;
194191
@@ -200,7 +197,6 @@ export class BranchMenu extends React.Component<
200197 * Removes model listeners.
201198 */
202199 private _removeListeners ( ) : void {
203- this . props . model . repositoryChanged . disconnect ( this . _syncState , this ) ;
204200 this . props . model . headChanged . disconnect ( this . _syncState , this ) ;
205201 this . props . model . statusChanged . disconnect ( this . _syncState , this ) ;
206202 }
You can’t perform that action at this time.
0 commit comments