From ea970e45ce6d72a87b25118b5ef3f70d8abbf525 Mon Sep 17 00:00:00 2001 From: Yaroslav Vorobiov Date: Thu, 20 Feb 2020 15:31:33 +0200 Subject: [PATCH] satellite/payments: remove unused code Change-Id: I2daaf5089bec000a6e995b8396d55528256aca6c --- satellite/core.go | 1 - satellite/payments/stripecoinpayments/clearing.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/satellite/core.go b/satellite/core.go index dbca3799b..2afa58d1c 100644 --- a/satellite/core.go +++ b/satellite/core.go @@ -448,7 +448,6 @@ func New(log *zap.Logger, full *identity.FullIdentity, db DB, }) peer.Debug.Server.Panel.Add( debug.Cycle("Payments Stripe Transactions", peer.Payments.Chore.TransactionCycle), - debug.Cycle("Payments Stripe Coupons", peer.Payments.Chore.CouponUsageCycle), debug.Cycle("Payments Stripe Account Balance", peer.Payments.Chore.AccountBalanceCycle), ) } diff --git a/satellite/payments/stripecoinpayments/clearing.go b/satellite/payments/stripecoinpayments/clearing.go index c247b2c55..67980c96f 100644 --- a/satellite/payments/stripecoinpayments/clearing.go +++ b/satellite/payments/stripecoinpayments/clearing.go @@ -25,7 +25,6 @@ type Chore struct { log *zap.Logger service *Service TransactionCycle *sync2.Cycle - CouponUsageCycle *sync2.Cycle AccountBalanceCycle *sync2.Cycle } @@ -37,7 +36,6 @@ func NewChore(log *zap.Logger, service *Service, txInterval, accBalanceInterval service: service, TransactionCycle: sync2.NewCycle(txInterval), AccountBalanceCycle: sync2.NewCycle(accBalanceInterval), - CouponUsageCycle: sync2.NewCycle(0), } }