diff options
author | Florian Dold <florian@dold.me> | 2023-06-20 16:07:15 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-20 16:07:20 +0200 |
commit | e5a8ae7d60c9fc9d6740ef391ac34f2ac620b0f4 (patch) | |
tree | 472ddac0bbcf0b80a682672462870de613e8b3c8 /packages/taler-wallet-core/src/operations | |
parent | a86c948fc9e44e3503cd19776c3eb6410ea3d674 (diff) | |
download | wallet-core-e5a8ae7d60c9fc9d6740ef391ac34f2ac620b0f4.tar.xz |
wallet-core: remove redundant/unused notifications
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
4 files changed, 0 insertions, 45 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index ad6552f06..d7463134a 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -560,12 +560,6 @@ async function processDownloadProposal( notifyTransition(ws, transactionId, transitionInfo); - // FIXME: Deprecated pre-DD37 notification, remove eventually - ws.notify({ - type: NotificationType.ProposalDownloaded, - proposalId: proposal.proposalId, - }); - return { type: OperationAttemptResultType.Finished, result: undefined, @@ -1453,11 +1447,6 @@ export async function confirmPay( notifyTransition(ws, transactionId, transitionInfo); - ws.notify({ - type: NotificationType.ProposalAccepted, - proposalId: proposal.proposalId, - }); - return runPayForConfirmPay(ws, proposalId); } diff --git a/packages/taler-wallet-core/src/operations/recoup.ts b/packages/taler-wallet-core/src/operations/recoup.ts index 71eb58ec9..056aa83b8 100644 --- a/packages/taler-wallet-core/src/operations/recoup.ts +++ b/packages/taler-wallet-core/src/operations/recoup.ts @@ -136,10 +136,6 @@ async function recoupWithdrawCoin( return; } - ws.notify({ - type: NotificationType.RecoupStarted, - }); - const recoupRequest = await ws.cryptoApi.createRecoupRequest({ blindingKey: coin.blindingKey, coinPriv: coin.coinPriv, @@ -182,10 +178,6 @@ async function recoupWithdrawCoin( await tx.coins.put(updatedCoin); await putGroupAsFinished(ws, tx, recoupGroup, coinIdx); }); - - ws.notify({ - type: NotificationType.RecoupFinished, - }); } async function recoupRefreshCoin( @@ -214,10 +206,6 @@ async function recoupRefreshCoin( return; } - ws.notify({ - type: NotificationType.RecoupStarted, - }); - const recoupRequest = await ws.cryptoApi.createRecoupRefreshRequest({ blindingKey: coin.blindingKey, coinPriv: coin.coinPriv, diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index e00275c8d..9c9ad8bbd 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -266,7 +266,6 @@ async function refreshCreateSession( await tx.refreshGroups.put(rg); }); - ws.notify({ type: NotificationType.RefreshUnwarranted }); return; } @@ -297,7 +296,6 @@ async function refreshCreateSession( logger.info( `created refresh session for coin #${coinIndex} in ${refreshGroupId}`, ); - ws.notify({ type: NotificationType.RefreshStarted }); } function getRefreshRequestTimeout(rg: RefreshGroupRecord): Duration { @@ -482,10 +480,6 @@ async function refreshMelt( rs.norevealIndex = norevealIndex; await tx.refreshGroups.put(rg); }); - - ws.notify({ - type: NotificationType.RefreshMelted, - }); } export async function assembleRefreshRevealRequest(args: { @@ -742,9 +736,6 @@ async function refreshReveal( await tx.refreshGroups.put(rg); }); logger.trace("refresh finished (end of reveal)"); - ws.notify({ - type: NotificationType.RefreshRevealed, - }); } export async function processRefreshGroup( diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 118084197..ed9522c0f 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1515,14 +1515,6 @@ async function processWithdrawalGroupPendingReady( ); } - // FIXME: Deprecated with DD37 - if (finishedForFirstTime) { - ws.notify({ - type: NotificationType.WithdrawGroupFinished, - reservePub: withdrawalGroup.reservePub, - }); - } - return { type: OperationAttemptResultType.Finished, result: undefined, @@ -1634,11 +1626,6 @@ export async function checkWithdrawalKycStatus( } else if (kycStatusRes.status === HttpStatusCode.Accepted) { const kycStatus = await kycStatusRes.json(); logger.info(`kyc status: ${j2s(kycStatus)}`); - ws.notify({ - type: NotificationType.KycRequested, - kycUrl: kycStatus.kyc_url, - transactionId: txId, - }); throw TalerError.fromDetail( TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED, //FIXME: another error code or rename for merge { |