TF-439 Delete all class not used
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:tmail_ui_user/features/caching/account_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/email_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/fcm_token_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/mailbox_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/recent_search_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/state_cache_client.dart';
|
||||
@@ -14,7 +13,6 @@ class CachingManager {
|
||||
final EmailCacheClient _emailCacheClient;
|
||||
final RecentSearchCacheClient _recentSearchCacheClient;
|
||||
final AccountCacheClient _accountCacheClient;
|
||||
final FcmTokenCacheClient _fcmTokenCacheClient;
|
||||
final FCMCacheManager _fcmCacheManager;
|
||||
|
||||
CachingManager(
|
||||
@@ -23,7 +21,6 @@ class CachingManager {
|
||||
this._emailCacheClient,
|
||||
this._recentSearchCacheClient,
|
||||
this._accountCacheClient,
|
||||
this._fcmTokenCacheClient,
|
||||
this._fcmCacheManager,
|
||||
);
|
||||
|
||||
@@ -35,7 +32,6 @@ class CachingManager {
|
||||
_emailCacheClient.clearAllData(),
|
||||
_recentSearchCacheClient.clearAllData(),
|
||||
_accountCacheClient.clearAllData(),
|
||||
_fcmTokenCacheClient.clearAllData(),
|
||||
_fcmCacheManager.clearAllStateToRefresh()
|
||||
]);
|
||||
} else {
|
||||
@@ -45,7 +41,6 @@ class CachingManager {
|
||||
_emailCacheClient.deleteBox(),
|
||||
_recentSearchCacheClient.deleteBox(),
|
||||
_accountCacheClient.deleteBox(),
|
||||
_fcmTokenCacheClient.deleteBox(),
|
||||
_fcmCacheManager.clearAllStateToRefresh()
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ import 'package:tmail_ui_user/features/mailbox/data/model/mailbox_rights_cache.d
|
||||
import 'package:tmail_ui_user/features/mailbox/data/model/state_cache.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/data/model/state_type.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/data/model/recent_search_cache.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_token_cache.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/model/email_address_hive_cache.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/model/email_cache.dart';
|
||||
|
||||
@@ -119,10 +118,6 @@ class HiveCacheConfig {
|
||||
RecentLoginUsernameCacheAdapter(),
|
||||
CachingConstants.RECENT_LOGIN_USERNAME_HIVE_CACHE_IDENTITY
|
||||
);
|
||||
registerCacheAdapter<FCMTokenCache>(
|
||||
FCMTokenCacheAdapter(),
|
||||
CachingConstants.FCM_TOKEN_CACHE_IDENTITY
|
||||
);
|
||||
}
|
||||
|
||||
void registerCacheAdapter<T>(TypeAdapter<T> typeAdapter, int typeId) {
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import 'package:tmail_ui_user/features/caching/config/hive_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_token_cache.dart';
|
||||
|
||||
class FcmTokenCacheClient extends HiveCacheClient<FCMTokenCache> {
|
||||
|
||||
@override
|
||||
String get tableName => 'FCMTokenCache';
|
||||
}
|
||||
@@ -13,5 +13,4 @@ class CachingConstants {
|
||||
static const int AUTHENTICATION_INFO_HIVE_CACHE_IDENTIFY = 11;
|
||||
static const int RECENT_LOGIN_URL_HIVE_CACHE_IDENTITY = 12;
|
||||
static const int RECENT_LOGIN_USERNAME_HIVE_CACHE_IDENTITY = 13;
|
||||
static const int FCM_TOKEN_CACHE_IDENTITY = 14;
|
||||
}
|
||||
Reference in New Issue
Block a user