remove unused function: formatNumber
This commit is contained in:
@@ -1133,19 +1133,6 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
info.text = text
|
||||
}
|
||||
|
||||
func formatNumber(_ value: Float) -> String {
|
||||
let integerPart = Int(value)
|
||||
let fractionalPart = value - Float(integerPart)
|
||||
|
||||
if fractionalPart == 0 {
|
||||
return String(format: "%04d", integerPart)
|
||||
} else {
|
||||
// Convert fractional part to string without leading "0"
|
||||
let fractionalString = String(String(value).split(separator: ".")[1])
|
||||
return String(format: "%04d.%@", integerPart, fractionalString)
|
||||
}
|
||||
}
|
||||
|
||||
func getImagePath(progress: ProgressIndices) -> URL! {
|
||||
let (v, c, i) = (progress.v, progress.c, progress.i)
|
||||
let modernPath = currentPath.appendingPathComponent("images").appendingPathComponent(
|
||||
|
||||
Reference in New Issue
Block a user