Skip to content

Commit

Permalink
fix: Remove uselss localizedName
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann committed Jan 29, 2024
1 parent da028d5 commit 135665c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions kDriveCore/Data/Models/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -459,19 +459,6 @@ public final class File: Object, Codable {
case supportedBy = "supported_by"
}

public var localizedName: String {
switch visibility {
case .root, .isSharedSpace, .isTeamSpaceFolder, .isInTeamSpaceFolder:
return name
case .isPrivateSpace:
return "privé"
case .isTeamSpace:
return "team"
case nil:
return name
}
}

public var parent: File? {
// We want to get the real parent not one of the fake roots
return parentLink.filter(NSPredicate(format: "id > 0")).first
Expand Down

0 comments on commit 135665c

Please sign in to comment.