Skip to content

Commit

Permalink
Solver: correct a function name (NFC)
Browse files Browse the repository at this point in the history
Rename `optimize_` to `optimize`.
  • Loading branch information
compnerd committed Oct 25, 2020
1 parent c4d9252 commit a438611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Cassowary/Solver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public class Solver {
// The current state of the system should be such that the objective function
// is optimal, but not feasible. THis method will perform an iteration of the
// dual simplex method to make the solution both optional and feasible.
private func optimize_() throws {
private func optimize() throws {
while infeasible.count > 0 {
let exiting: Symbol = infeasible.popLast()!
guard let row: Row = rows[exiting] else {
Expand Down Expand Up @@ -533,7 +533,7 @@ public class Solver {
throw UnknownEditVariable(variable)
}

defer { try! optimize_() }
defer { try! optimize() }

let delta: Double = value - edit.constant
edit.constant = value
Expand Down

0 comments on commit a438611

Please sign in to comment.