Skip to content

Commit

Permalink
Remove unused conflict resolution case
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilak committed Sep 3, 2024
1 parent cd85f21 commit ad7e301
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion Zotero/Assets/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@
"errors.collections.bibliography_failed" = "Could not load items for bibliography.";
"errors.sync.group_removed" = "Group '%@' is no longer accessible. What would you like to do?";
"errors.sync.metadata_write_denied" = "You can't write to group '%@' anymore. What would you like to do?";
"errors.sync.keep_changes" = "Keep changes";
"errors.sync.revert_to_original" = "Revert to original";
"errors.sync.file_write_denied" = "You no longer have file-editing access for the group ‘%@’, and files you’ve changed locally cannot be uploaded. If you continue, all group files will be reset to their state on %@.\n\nIf you would like a chance to copy modified files elsewhere or to request file-editing access from a group administrator, you can skip syncing of the group now.";
"errors.sync.reset_group_files" = "Reset Group Files and Sync";
Expand Down
3 changes: 0 additions & 3 deletions Zotero/Controllers/Sync/SyncController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,6 @@ final class SyncController: SynchronizationController {
case .deleteGroup(let id):
return [.deleteGroup(id)]

case .keepGroupChanges(let id):
return [.markChangesAsResolved(id)]

case .markGroupAsLocalOnly(let id):
return [.markGroupAsLocalOnly(id)]

Expand Down
2 changes: 0 additions & 2 deletions Zotero/Extensions/Localizable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,6 @@ internal enum L10n {
internal static func groupRemoved(_ p1: Any) -> String {
return L10n.tr("Localizable", "errors.sync.group_removed", String(describing: p1), fallback: "Group '%@' is no longer accessible. What would you like to do?")
}
/// Keep changes
internal static let keepChanges = L10n.tr("Localizable", "errors.sync.keep_changes", fallback: "Keep changes")
/// You can't write to group '%@' anymore. What would you like to do?
internal static func metadataWriteDenied(_ p1: Any) -> String {
return L10n.tr("Localizable", "errors.sync.metadata_write_denied", String(describing: p1), fallback: "You can't write to group '%@' anymore. What would you like to do?")
Expand Down
1 change: 0 additions & 1 deletion Zotero/Models/ConflictResolution.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ enum ConflictResolution {
case deleteGroup(Int)
case markGroupAsLocalOnly(Int)
case revertGroupChanges(LibraryIdentifier)
case keepGroupChanges(LibraryIdentifier)
case revertGroupFiles(LibraryIdentifier)
case skipGroup(LibraryIdentifier)
case remoteDeletionOfActiveObject(libraryId: LibraryIdentifier, toDeleteCollections: [String], toRestoreCollections: [String],
Expand Down

0 comments on commit ad7e301

Please sign in to comment.