From ea9fce9bae3327c76f727ae9f6b474dfc267b936 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 12 May 2026 23:47:34 +0800 Subject: [PATCH] remove unused code --- pkg/services/transactions.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/services/transactions.go b/pkg/services/transactions.go index 413db0ab..c602f4b6 100644 --- a/pkg/services/transactions.go +++ b/pkg/services/transactions.go @@ -55,7 +55,7 @@ func (s *TransactionService) GetAllTransactions(c core.Context, uid int64, pageC var allTransactions []*models.Transaction for maxTransactionTime > 0 { - transactions, err := s.GetAllTransactionsByMaxTime(c, uid, maxTransactionTime, pageCount, noDuplicated) + transactions, err := s.GetTransactionsByMaxTime(c, uid, maxTransactionTime, 0, 0, nil, nil, nil, false, "", "", false, 1, pageCount, false, noDuplicated) if err != nil { return nil, err @@ -74,11 +74,6 @@ func (s *TransactionService) GetAllTransactions(c core.Context, uid int64, pageC return allTransactions, nil } -// GetAllTransactionsByMaxTime returns all transactions before given time -func (s *TransactionService) GetAllTransactionsByMaxTime(c core.Context, uid int64, maxTransactionTime int64, count int32, noDuplicated bool) ([]*models.Transaction, error) { - return s.GetTransactionsByMaxTime(c, uid, maxTransactionTime, 0, 0, nil, nil, nil, false, "", "", false, 1, count, false, noDuplicated) -} - // GetAllSpecifiedTransactions returns all transactions that match given conditions func (s *TransactionService) GetAllSpecifiedTransactions(c core.Context, uid int64, maxTransactionTime int64, minTransactionTime int64, transactionType models.TransactionType, categoryIds []int64, accountIds []int64, tagFilters []*models.TransactionTagFilter, noTags bool, amountFilter string, keyword string, mustHavePictures bool, pageCount int32, noDuplicated bool) ([]*models.Transaction, error) { if maxTransactionTime <= 0 {