Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Loop/Migration/Migrator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,6 @@ private extension Migrator {

// Handle nested cycle actions if present
if var cycle = actions[i]["cycle"] as? [[String: Any]] {
// Sort the cycle actions by direction
cycle.sort { first, second -> Bool in
let firstDir = first["direction"] as? String ?? ""
let secondDir = second["direction"] as? String ?? ""
return firstDir < secondDir
}

// For each action in the cycle
for j in 0 ..< cycle.count {
// Sort the keybind array in each cycle action
Expand Down