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<
186
186
* Adds model listeners.
187
187
*/
188
188
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
-
192
189
// When the HEAD changes, decent probability that we've switched branches:
193
190
this . props . model . headChanged . connect ( this . _syncState , this ) ;
194
191
@@ -200,7 +197,6 @@ export class BranchMenu extends React.Component<
200
197
* Removes model listeners.
201
198
*/
202
199
private _removeListeners ( ) : void {
203
- this . props . model . repositoryChanged . disconnect ( this . _syncState , this ) ;
204
200
this . props . model . headChanged . disconnect ( this . _syncState , this ) ;
205
201
this . props . model . statusChanged . disconnect ( this . _syncState , this ) ;
206
202
}
You can’t perform that action at this time.
0 commit comments