Skip to content

Commit

Permalink
remove now unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Dec 10, 2019
1 parent 2ea6880 commit 34f0ffe
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/crypto/verification/request/VerificationRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,26 +244,6 @@ export default class VerificationRequest extends EventEmitter {
}
}

/**
* @returns {Promise} with the verifier once it becomes available.
* Can be used after calling `accept` to wait for the other party to start verification.
*/
waitForVerifier() {
if (this.verifier) {
return Promise.resolve(this.verifier);
} else {
return new Promise(resolve => {
const checkVerifier = () => {
if (this.verifier) {
this.off("change", checkVerifier);
resolve(this.verifier);
}
};
this.on("change", checkVerifier);
});
}
}

_setPhase(phase, notify = true) {
this._phase = phase;
if (notify) {
Expand Down

0 comments on commit 34f0ffe

Please sign in to comment.