Procházet zdrojové kódy

removed unused code

ashilkn před 2 roky
rodič
revize
9bdad2e06d
1 změnil soubory, kde provedl 0 přidání a 23 odebrání
  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
-    };
-  }
 }