From 832bf4d4ca6718d8258b4f46a07d32f5b1f7719e Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 18 Sep 2025 09:28:45 +0200 Subject: [PATCH] Remove deprecated updateWalletBalance method from AuthService - Eliminated the deprecated updateWalletBalance method from AuthService, which redirected calls to PaymentService for wallet balance updates. - This change streamlines the codebase by removing outdated functionality and encourages the use of the new PaymentService method for better maintainability. These updates contribute to a cleaner architecture and improved service consistency. --- src/modules/base/auth/auth-service.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/modules/base/auth/auth-service.ts b/src/modules/base/auth/auth-service.ts index ea2fef0..1c89f0e 100644 --- a/src/modules/base/auth/auth-service.ts +++ b/src/modules/base/auth/auth-service.ts @@ -2,7 +2,6 @@ import { ref, computed } from 'vue' import { BaseService } from '@/core/base/BaseService' import { eventBus } from '@/core/event-bus' -import { tryInjectService, SERVICE_TOKENS } from '@/core/di-container' import type { LoginCredentials, RegisterData, User } from '@/lib/api/lnbits' export class AuthService extends BaseService { @@ -134,19 +133,6 @@ export class AuthService extends BaseService { await this.checkAuth() } - /** - * @deprecated Use PaymentService.updateWalletBalance() instead - * This method will be removed in a future version - */ - updateWalletBalance(balanceMsat: number, walletId?: string): void { - console.warn('AuthService.updateWalletBalance is deprecated. Use PaymentService.updateWalletBalance() instead') - - // For backwards compatibility, delegate to PaymentService if available - const paymentService = tryInjectService(SERVICE_TOKENS.PAYMENT_SERVICE) as any - if (paymentService?.updateWalletBalance) { - paymentService.updateWalletBalance(balanceMsat, walletId) - } - } async initialize(): Promise { // Call BaseService initialize first to inject dependencies