From e55c00f8895bd409ca7dea1ea79753f5b558b170 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Fri, 8 Nov 2019 15:04:36 +0100 Subject: [PATCH] refactor: remove unused sendPayment events --- services/grpc/lightning.methods.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/grpc/lightning.methods.js b/services/grpc/lightning.methods.js index e1de44875b5..915027dbdd4 100644 --- a/services/grpc/lightning.methods.js +++ b/services/grpc/lightning.methods.js @@ -293,7 +293,6 @@ async function sendPayment(payload = {}) { const isSuccess = !res.payment_error if (isSuccess) { grpcLog.debug('PAYMENT SUCCESS', res) - this.emit('sendPayment.data', res) resolve(res) } @@ -302,7 +301,6 @@ async function sendPayment(payload = {}) { grpcLog.error('PAYMENT ERROR', res) const error = new Error(res.payment_error) error.details = res - this.emit('sendPayment.error', error) reject(error) } call.end() @@ -310,12 +308,10 @@ async function sendPayment(payload = {}) { call.on('status', status => { grpcLog.debug('PAYMENT STATUS', status) - this.emit('sendPayment.status', status) }) call.on('end', () => { grpcLog.debug('PAYMENT END') - this.emit('sendPayment.end') }) call.write(payload)