Skip to content

Commit ac75121

Browse files
committed
Remove listener for repository changes
1 parent dabd739 commit ac75121

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/BranchMenu.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)