Browse Source

removed unused code

ashilkn 2 năm trước cách đây
mục cha
commit
9bdad2e06d
1 tập tin đã thay đổi với 0 bổ sung23 xóa
  1. 0 23
      lib/models/user_details.dart

+ 0 - 23
lib/models/user_details.dart

@@ -53,10 +53,6 @@ class UserDetails {
     return isPartOfFamily() ? familyData.storage : subscription.storage;
   }
 
-  int getPersonalUsage() {
-    return usage;
-  }
-
   factory UserDetails.fromMap(Map<String, dynamic> map) {
     return UserDetails(
       map['email'] as String,
@@ -67,17 +63,6 @@ class UserDetails {
       FamilyData.fromMap(map['familyData']),
     );
   }
-
-  Map<String, dynamic> toMap() {
-    return {
-      'email': email,
-      'usage': usage,
-      'fileCount': fileCount,
-      'sharedCollectionsCount': sharedCollectionsCount,
-      'subscription': subscription,
-      'familyData': familyData
-    };
-  }
 }
 
 class FamilyMember {
@@ -129,12 +114,4 @@ class FamilyData {
       map['expiryTime'] as int,
     );
   }
-
-  Map<String, dynamic> toMap() {
-    return {
-      'members': members.map((x) => x?.toMap())?.toList(),
-      'storage': storage,
-      'expiryTime': expiryTime
-    };
-  }
 }